GroupContactsModel.fromMap constructor

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

Implementation

factory GroupContactsModel.fromMap(Map<String, dynamic>? map) {
  if (map == null) return GroupContactsModel();

  return GroupContactsModel(
    contact: AtContact.fromJson(map['contact']),
    group: AtGroup.fromJson(map['group']),
    contactType: map['contactType'],
  );
}