toJson method

Map<String, dynamic> toJson()

Implementation

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