toJson method
Returns a JSON representation of this object.
Implementation
Map<String, dynamic> toJson() {
return {
ApiFields.id: id,
ApiFields.idInAgency: idInAgency,
ApiFields.uid: uid,
ApiFields.title: title,
ApiFields.description: description,
ApiFields.images: images?.map((image) => image.toJson()).toList(),
ApiFields.crimeCategory: crimeCategory,
ApiFields.maker: maker,
ApiFields.materials: materials,
ApiFields.measurements: measurements,
ApiFields.period: period,
ApiFields.additionalData: additionalData,
ApiFields.modified: modified,
ApiFields.publication: publication,
ApiFields.path: path,
ApiFields.referenceNumber: referenceNumber,
ApiFields.isStealth: isStealth,
};
}