toJson method

  1. @override
Map<String, dynamic> toJson()
override

Returns the json representation of this model in the unsplash api.

Implementation

@override
Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'make': make,
    'model': model,
    'exposure_time': exposureTime,
    'aperture': aperture,
    'focal_length': focalLength,
    'iso': iso,
  };
}