Converts this response to a JSON map.
Map<String, dynamic> toJson() { return modelVersions.map( (key, value) => MapEntry(key, value?.toJson()), ); }