toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"id": id,
"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,
"tags": tags == null ? null : List<dynamic>.from(tags!.map((int x) => x)),
"addTags": addTags == null ? null : List<dynamic>.from(addTags!.map((int x) => x)),
"removeTags": removeTags == null ? null : List<dynamic>.from(removeTags!.map((int x) => x)),
"detail1": detail1,
"detail2": detail2,
"adminUserIds": adminUserIds == null ? <dynamic>[] : List<dynamic>.from(adminUserIds!.map((String x) => x)),
"addAdminUserIds": addAdminUserIds == null ? <dynamic>[] : List<dynamic>.from(addAdminUserIds!.map((String x) => x)),
"removeAdminUserIds": removeAdminUserIds == null ? <dynamic>[] : List<dynamic>.from(removeAdminUserIds!.map((String x) => x)),
};