Contact.fromJson constructor

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

Implementation

factory Contact.fromJson(Map<String, dynamic> json) => Contact(
      id: json["id"],
      name: json["name"],
      industry: json["industry"],
      owner: json["owner"],
      website: json["website"],
      noOfEmployee: json["noOfEmployee"],
      fileName: json["fileName"],
      filePath: json["filePath"],
      email: json["email"],
      emails: json["emails"] == null
          ? []
          : List<Email>.from(json["emails"]!.map((x) => Email.fromJson(x))),
      emailType: json["emailType"],
      number: json["number"],
      numbers: json["numbers"] == null
          ? []
          : List<dynamic>.from(json["numbers"]!.map((x) => x)),
      numberType: json["numberType"],
      address: json["address"],
      addresses: json["addresses"] == null
          ? []
          : List<dynamic>.from(json["addresses"]!.map((x) => x)),
      city: json["city"],
      state: json["state"],
      tags: json["tags"],
      deleted: json["deleted"],
      privateRepliesCount: json["privateRepliesCount"],
      publicRepliesCount: json["publicRepliesCount"],
      addressType: json["addressType"],
      fbId: json["fbId"],
      facebookRecords: json["facebookRecords"] == null
          ? []
          : List<dynamic>.from(json["facebookRecords"]!.map((x) => x)),
      fbName: json["fbName"],
      fbPicUrl: json["fbPicUrl"],
      twitterId: json["twitterId"],
      twitterRecords: json["twitterRecords"] == null
          ? []
          : List<dynamic>.from(json["twitterRecords"]!.map((x) => x)),
      twitterName: json["twitterName"],
      twitterScreenName: json["twitterScreenName"],
      twitterLocation: json["twitterLocation"],
      twitterPicUrl: json["twitterPicUrl"],
      instaId: json["instaId"],
      instagramRecords: json["instagramRecords"] == null
          ? []
          : List<dynamic>.from(json["instagramRecords"]!.map((x) => x)),
      instaUserName: json["instaUserName"],
      chatId: json["chatId"],
      chatRecords: json["chatRecords"] == null
          ? []
          : List<dynamic>.from(json["chatRecords"]!.map((x) => x)),
      chatName: json["chatName"],
      waId: json["waId"],
      whatsappRecords: json["whatsappRecords"] == null
          ? []
          : List<dynamic>.from(json["whatsappRecords"]!.map((x) => x)),
      waName: json["waName"],
      waNumber: json["waNumber"],
      customId: json["customId"],
      updatedBy: json["updatedBy"],
      createdBy: json["createdBy"],
      createdAt: json["createdAt"] == null
          ? null
          : DateTime.parse(json["createdAt"]),
      updatedAt: json["updatedAt"] == null
          ? null
          : DateTime.parse(json["updatedAt"]),
      compOwner: json["compOwner"],
      gbmId: json["gbmId"],
      gbmName: json["gbmName"],
      smsId: json["smsId"],
      linkedinId: json["linkedinId"],
      linkedinUrnId: json["linkedinUrnId"],
      linkedinName: json["linkedinName"],
      linkedinPpUrl: json["linkedinPpUrl"],
      checkProfilePermission: json["checkProfilePermission"],
      typeContact: json["type_contact"],
    );