toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
if (address != null) {
json['address'] = address!.pointerId;
}
if (image != null) {
json['image'] = image;
}
if (coordinates != null) {
json['coordinates'] = coordinates;
}
if (name != null) {
json['name'] = name;
}
if (description != null) {
json['description'] = description;
}
if (author != null) {
json['author'] = author;
}
if (extrainfo != null) {
json['extraInfo'] = extrainfo!.toInputFormat();
}
return json;
}