Customer.fromJson constructor

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

Implementation

Customer.fromJson(Map<String, dynamic> json) {
  if (json["id"] is int) {
    id = json["id"];
  }
  if (json["uniqueId"] is String) {
    uniqueId = json["uniqueId"];
  }
  if (json["displayName"] is String) {
    displayName = json["displayName"];
  }
  if (json["email"] is String) {
    email = json["email"];
  }
  if (json["phone"] is String) {
    phone = json["phone"];
  }
  if (json["thumbnail"] is String) {
    thumbnail = json["thumbnail"];
  }
  if (json["isUser"] is bool) {
    isUser = json["isUser"];
  }
}