toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
if (embedded != null) r'_embedded': embedded,
if (links != null) r'_links': links,
if (address != null) r'address': address,
if (branchCode != null) r'branchCode': branchCode,
if (createdAt != null) r'createdAt': createdAt!.toUtc().toIso8601String(),
if (description != null) r'description': description,
if (id != null) r'id': id,
r'name': name,
if (preferences != null) r'preferences': preferences,
if (type != null) r'type': type,
if (updatedAt != null) r'updatedAt': updatedAt!.toUtc().toIso8601String(),
};
}