ArtCrimeResultSet.fromJson constructor
Creates an ArtCrimeResultSet object from a JSON object.
Implementation
factory ArtCrimeResultSet.fromJson(Map<String, dynamic> json) {
final List? artCrimes = json[ApiFields.artCrimes] as List?;
return ArtCrimeResultSet(
total: json[ApiFields.total],
page: json[ApiFields.page],
artCrimes:
artCrimes?.map((artCrime) => ArtCrime.fromJson(artCrime)).toList(),
);
}