toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"id": id,
"createdAt": createdAt.toIso8601String(),
"jsonData": jsonData.toMap(),
"tags": List<int>.from(tags.map((int x) => x)),
"creator": creator?.toMap(),
"creatorId": creatorId,
"name": name,
"economicCode": economicCode,
"legalEntity": legalEntity,
"uniqueTaxCode": uniqueTaxCode,
"nationalCode": nationalCode,
"postalCode": postalCode,
"registrationDate": registrationDate,
"registrationNumber": registrationNumber,
"address": address,
"startInvoiceNumber": startInvoiceNumber,
"introductionCode": introductionCode,
"ownerName": ownerName,
"ownerMobile": ownerMobile,
"ownerNationalCode": ownerNationalCode,
"userId": userId,
"user": user?.toMap(),
"adminUserIds": List<dynamic>.from(adminUserIds.map((String x) => x)),
};