2022-07-13 14:23:48 +02:00
|
|
|
//
|
|
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
|
|
//
|
|
|
|
// @dart=2.12
|
|
|
|
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
|
|
// ignore_for_file: constant_identifier_names
|
|
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
|
|
|
|
part of openapi.api;
|
|
|
|
|
|
|
|
class ExifResponseDto {
|
|
|
|
/// Returns a new [ExifResponseDto] instance.
|
|
|
|
ExifResponseDto({
|
2023-08-01 18:49:18 +02:00
|
|
|
this.city,
|
|
|
|
this.country,
|
2022-07-13 14:23:48 +02:00
|
|
|
this.dateTimeOriginal,
|
2023-08-01 18:49:18 +02:00
|
|
|
this.description,
|
|
|
|
this.exifImageHeight,
|
|
|
|
this.exifImageWidth,
|
|
|
|
this.exposureTime,
|
2022-07-13 14:23:48 +02:00
|
|
|
this.fNumber,
|
2023-08-01 18:49:18 +02:00
|
|
|
this.fileSizeInByte,
|
2022-07-13 14:23:48 +02:00
|
|
|
this.focalLength,
|
|
|
|
this.iso,
|
|
|
|
this.latitude,
|
2023-08-01 18:49:18 +02:00
|
|
|
this.lensModel,
|
2022-07-13 14:23:48 +02:00
|
|
|
this.longitude,
|
2023-08-01 18:49:18 +02:00
|
|
|
this.make,
|
|
|
|
this.model,
|
|
|
|
this.modifyDate,
|
|
|
|
this.orientation,
|
2023-07-28 06:29:09 +02:00
|
|
|
this.projectionType,
|
2023-08-01 18:49:18 +02:00
|
|
|
this.state,
|
|
|
|
this.timeZone,
|
2022-07-13 14:23:48 +02:00
|
|
|
});
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? city;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? country;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
DateTime? dateTimeOriginal;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? description;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
|
|
|
num? exifImageHeight;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
num? exifImageWidth;
|
2023-04-02 21:11:24 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? exposureTime;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
|
|
|
num? fNumber;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
int? fileSizeInByte;
|
|
|
|
|
2022-07-13 14:23:48 +02:00
|
|
|
num? focalLength;
|
|
|
|
|
|
|
|
num? iso;
|
|
|
|
|
|
|
|
num? latitude;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? lensModel;
|
|
|
|
|
2022-07-13 14:23:48 +02:00
|
|
|
num? longitude;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? make;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? model;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
DateTime? modifyDate;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? orientation;
|
2023-04-13 17:22:06 +02:00
|
|
|
|
2023-07-28 06:29:09 +02:00
|
|
|
String? projectionType;
|
|
|
|
|
2023-08-01 18:49:18 +02:00
|
|
|
String? state;
|
|
|
|
|
|
|
|
String? timeZone;
|
|
|
|
|
2022-07-13 14:23:48 +02:00
|
|
|
@override
|
|
|
|
bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto &&
|
2023-08-01 18:49:18 +02:00
|
|
|
other.city == city &&
|
|
|
|
other.country == country &&
|
2022-07-13 14:23:48 +02:00
|
|
|
other.dateTimeOriginal == dateTimeOriginal &&
|
2023-08-01 18:49:18 +02:00
|
|
|
other.description == description &&
|
|
|
|
other.exifImageHeight == exifImageHeight &&
|
|
|
|
other.exifImageWidth == exifImageWidth &&
|
|
|
|
other.exposureTime == exposureTime &&
|
2022-07-13 14:23:48 +02:00
|
|
|
other.fNumber == fNumber &&
|
2023-08-01 18:49:18 +02:00
|
|
|
other.fileSizeInByte == fileSizeInByte &&
|
2022-07-13 14:23:48 +02:00
|
|
|
other.focalLength == focalLength &&
|
|
|
|
other.iso == iso &&
|
|
|
|
other.latitude == latitude &&
|
2023-08-01 18:49:18 +02:00
|
|
|
other.lensModel == lensModel &&
|
2022-07-13 14:23:48 +02:00
|
|
|
other.longitude == longitude &&
|
2023-08-01 18:49:18 +02:00
|
|
|
other.make == make &&
|
|
|
|
other.model == model &&
|
|
|
|
other.modifyDate == modifyDate &&
|
|
|
|
other.orientation == orientation &&
|
|
|
|
other.projectionType == projectionType &&
|
2022-07-13 14:23:48 +02:00
|
|
|
other.state == state &&
|
2023-08-01 18:49:18 +02:00
|
|
|
other.timeZone == timeZone;
|
2022-07-13 14:23:48 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode =>
|
|
|
|
// ignore: unnecessary_parenthesis
|
2023-08-01 18:49:18 +02:00
|
|
|
(city == null ? 0 : city!.hashCode) +
|
|
|
|
(country == null ? 0 : country!.hashCode) +
|
2022-07-13 14:23:48 +02:00
|
|
|
(dateTimeOriginal == null ? 0 : dateTimeOriginal!.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(description == null ? 0 : description!.hashCode) +
|
|
|
|
(exifImageHeight == null ? 0 : exifImageHeight!.hashCode) +
|
|
|
|
(exifImageWidth == null ? 0 : exifImageWidth!.hashCode) +
|
|
|
|
(exposureTime == null ? 0 : exposureTime!.hashCode) +
|
2022-07-13 14:23:48 +02:00
|
|
|
(fNumber == null ? 0 : fNumber!.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(fileSizeInByte == null ? 0 : fileSizeInByte!.hashCode) +
|
2022-07-13 14:23:48 +02:00
|
|
|
(focalLength == null ? 0 : focalLength!.hashCode) +
|
|
|
|
(iso == null ? 0 : iso!.hashCode) +
|
|
|
|
(latitude == null ? 0 : latitude!.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(lensModel == null ? 0 : lensModel!.hashCode) +
|
2022-07-13 14:23:48 +02:00
|
|
|
(longitude == null ? 0 : longitude!.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(make == null ? 0 : make!.hashCode) +
|
|
|
|
(model == null ? 0 : model!.hashCode) +
|
|
|
|
(modifyDate == null ? 0 : modifyDate!.hashCode) +
|
|
|
|
(orientation == null ? 0 : orientation!.hashCode) +
|
|
|
|
(projectionType == null ? 0 : projectionType!.hashCode) +
|
2022-07-13 14:23:48 +02:00
|
|
|
(state == null ? 0 : state!.hashCode) +
|
2023-08-01 18:49:18 +02:00
|
|
|
(timeZone == null ? 0 : timeZone!.hashCode);
|
2022-07-13 14:23:48 +02:00
|
|
|
|
|
|
|
@override
|
2023-08-01 18:49:18 +02:00
|
|
|
String toString() => 'ExifResponseDto[city=$city, country=$country, dateTimeOriginal=$dateTimeOriginal, description=$description, exifImageHeight=$exifImageHeight, exifImageWidth=$exifImageWidth, exposureTime=$exposureTime, fNumber=$fNumber, fileSizeInByte=$fileSizeInByte, focalLength=$focalLength, iso=$iso, latitude=$latitude, lensModel=$lensModel, longitude=$longitude, make=$make, model=$model, modifyDate=$modifyDate, orientation=$orientation, projectionType=$projectionType, state=$state, timeZone=$timeZone]';
|
2022-07-13 14:23:48 +02:00
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
2023-01-10 06:08:45 +02:00
|
|
|
final json = <String, dynamic>{};
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.city != null) {
|
|
|
|
json[r'city'] = this.city;
|
2022-10-06 18:25:54 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'city'] = null;
|
2022-10-06 18:25:54 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.country != null) {
|
|
|
|
json[r'country'] = this.country;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'country'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.dateTimeOriginal != null) {
|
|
|
|
json[r'dateTimeOriginal'] = this.dateTimeOriginal!.toUtc().toIso8601String();
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'dateTimeOriginal'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.description != null) {
|
|
|
|
json[r'description'] = this.description;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'description'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-01-10 06:08:45 +02:00
|
|
|
if (this.exifImageHeight != null) {
|
|
|
|
json[r'exifImageHeight'] = this.exifImageHeight;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-06-22 20:00:07 +02:00
|
|
|
// json[r'exifImageHeight'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.exifImageWidth != null) {
|
|
|
|
json[r'exifImageWidth'] = this.exifImageWidth;
|
2023-04-02 21:11:24 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'exifImageWidth'] = null;
|
2023-04-02 21:11:24 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.exposureTime != null) {
|
|
|
|
json[r'exposureTime'] = this.exposureTime;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'exposureTime'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-01-10 06:08:45 +02:00
|
|
|
if (this.fNumber != null) {
|
|
|
|
json[r'fNumber'] = this.fNumber;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-06-22 20:00:07 +02:00
|
|
|
// json[r'fNumber'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.fileSizeInByte != null) {
|
|
|
|
json[r'fileSizeInByte'] = this.fileSizeInByte;
|
|
|
|
} else {
|
|
|
|
// json[r'fileSizeInByte'] = null;
|
|
|
|
}
|
2023-01-10 06:08:45 +02:00
|
|
|
if (this.focalLength != null) {
|
|
|
|
json[r'focalLength'] = this.focalLength;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-06-22 20:00:07 +02:00
|
|
|
// json[r'focalLength'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-01-10 06:08:45 +02:00
|
|
|
if (this.iso != null) {
|
|
|
|
json[r'iso'] = this.iso;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-06-22 20:00:07 +02:00
|
|
|
// json[r'iso'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-01-10 06:08:45 +02:00
|
|
|
if (this.latitude != null) {
|
|
|
|
json[r'latitude'] = this.latitude;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-06-22 20:00:07 +02:00
|
|
|
// json[r'latitude'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.lensModel != null) {
|
|
|
|
json[r'lensModel'] = this.lensModel;
|
|
|
|
} else {
|
|
|
|
// json[r'lensModel'] = null;
|
|
|
|
}
|
2023-01-10 06:08:45 +02:00
|
|
|
if (this.longitude != null) {
|
|
|
|
json[r'longitude'] = this.longitude;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-06-22 20:00:07 +02:00
|
|
|
// json[r'longitude'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.make != null) {
|
|
|
|
json[r'make'] = this.make;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'make'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.model != null) {
|
|
|
|
json[r'model'] = this.model;
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'model'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.modifyDate != null) {
|
|
|
|
json[r'modifyDate'] = this.modifyDate!.toUtc().toIso8601String();
|
2022-07-13 14:23:48 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'modifyDate'] = null;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.orientation != null) {
|
|
|
|
json[r'orientation'] = this.orientation;
|
2023-04-13 17:22:06 +02:00
|
|
|
} else {
|
2023-08-01 18:49:18 +02:00
|
|
|
// json[r'orientation'] = null;
|
2023-04-13 17:22:06 +02:00
|
|
|
}
|
2023-07-28 06:29:09 +02:00
|
|
|
if (this.projectionType != null) {
|
|
|
|
json[r'projectionType'] = this.projectionType;
|
|
|
|
} else {
|
|
|
|
// json[r'projectionType'] = null;
|
|
|
|
}
|
2023-08-01 18:49:18 +02:00
|
|
|
if (this.state != null) {
|
|
|
|
json[r'state'] = this.state;
|
|
|
|
} else {
|
|
|
|
// json[r'state'] = null;
|
|
|
|
}
|
|
|
|
if (this.timeZone != null) {
|
|
|
|
json[r'timeZone'] = this.timeZone;
|
|
|
|
} else {
|
|
|
|
// json[r'timeZone'] = null;
|
|
|
|
}
|
2023-01-10 06:08:45 +02:00
|
|
|
return json;
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/// Returns a new [ExifResponseDto] instance and imports its values from
|
|
|
|
/// [value] if it's a [Map], null otherwise.
|
|
|
|
// ignore: prefer_constructors_over_static_methods
|
|
|
|
static ExifResponseDto? fromJson(dynamic value) {
|
|
|
|
if (value is Map) {
|
|
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
|
|
|
|
return ExifResponseDto(
|
2023-08-01 18:49:18 +02:00
|
|
|
city: mapValueOfType<String>(json, r'city'),
|
|
|
|
country: mapValueOfType<String>(json, r'country'),
|
|
|
|
dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', r''),
|
|
|
|
description: mapValueOfType<String>(json, r'description'),
|
2022-07-13 14:23:48 +02:00
|
|
|
exifImageHeight: json[r'exifImageHeight'] == null
|
|
|
|
? null
|
2023-06-29 21:35:29 +02:00
|
|
|
: num.parse('${json[r'exifImageHeight']}'),
|
2023-08-01 18:49:18 +02:00
|
|
|
exifImageWidth: json[r'exifImageWidth'] == null
|
|
|
|
? null
|
|
|
|
: num.parse('${json[r'exifImageWidth']}'),
|
|
|
|
exposureTime: mapValueOfType<String>(json, r'exposureTime'),
|
2022-07-13 14:23:48 +02:00
|
|
|
fNumber: json[r'fNumber'] == null
|
|
|
|
? null
|
2023-06-29 21:35:29 +02:00
|
|
|
: num.parse('${json[r'fNumber']}'),
|
2023-08-01 18:49:18 +02:00
|
|
|
fileSizeInByte: mapValueOfType<int>(json, r'fileSizeInByte'),
|
2022-07-13 14:23:48 +02:00
|
|
|
focalLength: json[r'focalLength'] == null
|
|
|
|
? null
|
2023-06-29 21:35:29 +02:00
|
|
|
: num.parse('${json[r'focalLength']}'),
|
2022-07-13 14:23:48 +02:00
|
|
|
iso: json[r'iso'] == null
|
|
|
|
? null
|
2023-06-29 21:35:29 +02:00
|
|
|
: num.parse('${json[r'iso']}'),
|
2022-07-13 14:23:48 +02:00
|
|
|
latitude: json[r'latitude'] == null
|
|
|
|
? null
|
2023-06-29 21:35:29 +02:00
|
|
|
: num.parse('${json[r'latitude']}'),
|
2023-08-01 18:49:18 +02:00
|
|
|
lensModel: mapValueOfType<String>(json, r'lensModel'),
|
2022-07-13 14:23:48 +02:00
|
|
|
longitude: json[r'longitude'] == null
|
|
|
|
? null
|
2023-06-29 21:35:29 +02:00
|
|
|
: num.parse('${json[r'longitude']}'),
|
2023-08-01 18:49:18 +02:00
|
|
|
make: mapValueOfType<String>(json, r'make'),
|
|
|
|
model: mapValueOfType<String>(json, r'model'),
|
|
|
|
modifyDate: mapDateTime(json, r'modifyDate', r''),
|
|
|
|
orientation: mapValueOfType<String>(json, r'orientation'),
|
2023-07-28 06:29:09 +02:00
|
|
|
projectionType: mapValueOfType<String>(json, r'projectionType'),
|
2023-08-01 18:49:18 +02:00
|
|
|
state: mapValueOfType<String>(json, r'state'),
|
|
|
|
timeZone: mapValueOfType<String>(json, r'timeZone'),
|
2022-07-13 14:23:48 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2023-05-03 21:27:57 +02:00
|
|
|
static List<ExifResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
2022-07-13 14:23:48 +02:00
|
|
|
final result = <ExifResponseDto>[];
|
|
|
|
if (json is List && json.isNotEmpty) {
|
|
|
|
for (final row in json) {
|
|
|
|
final value = ExifResponseDto.fromJson(row);
|
|
|
|
if (value != null) {
|
|
|
|
result.add(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result.toList(growable: growable);
|
|
|
|
}
|
|
|
|
|
|
|
|
static Map<String, ExifResponseDto> mapFromJson(dynamic json) {
|
|
|
|
final map = <String, ExifResponseDto>{};
|
|
|
|
if (json is Map && json.isNotEmpty) {
|
|
|
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
|
|
for (final entry in json.entries) {
|
|
|
|
final value = ExifResponseDto.fromJson(entry.value);
|
|
|
|
if (value != null) {
|
|
|
|
map[entry.key] = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
// maps a json object with a list of ExifResponseDto-objects as value to a dart map
|
|
|
|
static Map<String, List<ExifResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
|
|
final map = <String, List<ExifResponseDto>>{};
|
|
|
|
if (json is Map && json.isNotEmpty) {
|
2023-05-03 21:27:57 +02:00
|
|
|
// ignore: parameter_assignments
|
|
|
|
json = json.cast<String, dynamic>();
|
2022-07-13 14:23:48 +02:00
|
|
|
for (final entry in json.entries) {
|
2023-05-03 21:27:57 +02:00
|
|
|
map[entry.key] = ExifResponseDto.listFromJson(entry.value, growable: growable,);
|
2022-07-13 14:23:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// The list of required keys that must be present in a JSON.
|
|
|
|
static const requiredKeys = <String>{
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|