toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['createdAt'] = createdAt;
data['name'] = name;
data['officialTitle'] = officialTitle;
data['domain'] = domain;
data['slug'] = slug;
if (address != null) {
data['address'] = address!.toJson();
}
if (contact != null) {
data['contact'] = contact!.toJson();
}
if (tax != null) {
data['tax'] = tax!.toJson();
}
if (social != null) {
data['social'] = social!.toJson();
}
data['logoPhoto'] = logoPhoto;
data['bannerPhoto'] = bannerPhoto;
return data;
}