ContactModel.fromJson constructor

ContactModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

ContactModel.fromJson(Map<String, dynamic> json) {
  if (json["id"] is int) this.id = json["id"];
  if (json["isPro"] is int) this.isPro = json["isPro"];
  if (json["userId"] is int) this.userId = json["userId"];
  if (json["proId"] is int) this.proId = json["proId"];
  if (json["uniqueId"] is String) this.uniqueId = json["uniqueId"];
  if (json["lastContactDate"] is int)
    this.lastContactDate = json["lastContactDate"];
  if (json["phone"] is String) this.phone = json["phone"];
  if (json["firstName"] is String) this.firstName = json["firstName"];
  if (json["lastName"] is String) this.lastName = json["lastName"];
  if (json["infoName"] is String) this.infoName = json["infoName"];
  if (json["thumbnail"] is String) this.thumbnail = json["thumbnail"];
  if (json["comment"] is String) this.comment = json["comment"];
  if (json["arckipel"] is int) this.arckipel = json["arckipel"];
  if (json["userdisplayName"] is String)
    this.userDisplayName = json["userdisplayName"];
  if (json["proDisplayname"] is String)
    this.proDisplayname = json["proDisplayname"];
  if (json["firebaseId"] is String) this.firebaseId = json["firebaseId"];
}