toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "id": id,
  "createdAt": createdAt.toIso8601String(),
  "jsonData": jsonData.toMap(),
  "tags": List<dynamic>.from(tags.map((int x) => x)),
  "userName": userName,
  "landLine": landLine,
  "phoneNumber": phoneNumber,
  "email": email,
  "firstName": firstName,
  "lastName": lastName,
  "nationalCode": nationalCode,
  "bio": bio,
  "birthdate": birthdate?.toIso8601String(),
  "nationalCardFront": nationalCardFront,
  "nationalCardBack": nationalCardBack,
  "birthCertificateFirst": birthCertificateFirst,
  "birthCertificateSecond": birthCertificateSecond,
  "birthCertificateThird": birthCertificateThird,
  "birthCertificateForth": birthCertificateForth,
  "birthCertificateFifth": birthCertificateFifth,
  "visualAuthentication": visualAuthentication,
  "eSignature": eSignature,
  "categories": categories == null ? null : List<dynamic>.from(categories!.map((UCategoryResponse x) => x.toMap())),
  "media": media == null ? null : List<dynamic>.from(media!.map((UMediaResponse x) => x.toMap())),
  "addresses": addresses == null ? null : List<dynamic>.from(addresses!.map((UAddressResponse x) => x.toMap())),
  "merchants": merchants == null ? null : List<dynamic>.from(merchants!.map((UMerchantResponse x) => x.toMap())),
  "wallets": wallets == null ? null : List<dynamic>.from(wallets!.map((UWalletResponse x) => x.toMap())),
  "txns": txns == null ? null : List<dynamic>.from(txns!.map((UTxnResponse x) => x.toMap())),
  "bankAccounts": bankAccounts == null ? null : List<dynamic>.from(bankAccounts!.map((UBankAccountResponse x) => x.toMap())),
  "simCards": simCards == null ? null : List<dynamic>.from(simCards!.map((USimCardResponse x) => x.toMap())),
  "creator": creator?.toMap(),
  "creatorId": creatorId,
  "adminUserIds": List<dynamic>.from(adminUserIds.map((String x) => x)),
};