ReplyMessageInfo.fromMap constructor

ReplyMessageInfo.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ReplyMessageInfo.fromMap(Map<String, dynamic> map) {
  var info = ReplyMessageInfo(
      idClient: map['idClient'] as String?,
      from: map['from'] as String?,
      to: map['to'] as String?,
      idServer: map['idServer']?.toString(),
      time: map['time'] as int?,
      receiverId: map['receiverId']?.toString());
  if (map['scene'] is int?) {
    info.scene = map['scene'] as int?;
  }
  return info;
}