// // AUTO-GENERATED FILE, DO NOT MODIFY! // // @dart=2.0 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first // ignore_for_file: lines_longer_than_80_chars part of openapi.api; class UserDetailDTO { /// Returns a new [UserDetailDTO] instance. UserDetailDTO({ this.id, this.email, this.firstName, this.lastName, }); String id; String email; String firstName; String lastName; @override bool operator ==(Object other) => identical(this, other) || other is UserDetailDTO && other.id == id && other.email == email && other.firstName == firstName && other.lastName == lastName; @override int get hashCode => (id == null ? 0 : id.hashCode) + (email == null ? 0 : email.hashCode) + (firstName == null ? 0 : firstName.hashCode) + (lastName == null ? 0 : lastName.hashCode); @override String toString() => 'UserDetailDTO[id=$id, email=$email, firstName=$firstName, lastName=$lastName]'; Map toJson() { final json = {}; if (id != null) { json[r'id'] = id; } if (email != null) { json[r'email'] = email; } if (firstName != null) { json[r'firstName'] = firstName; } if (lastName != null) { json[r'lastName'] = lastName; } return json; } /// Returns a new [UserDetailDTO] instance and imports its values from /// [json] if it's non-null, null if [json] is null. static UserDetailDTO fromJson(Map json) => json == null ? null : UserDetailDTO( id: json[r'id'], email: json[r'email'], firstName: json[r'firstName'], lastName: json[r'lastName'], ); static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => json == null || json.isEmpty ? true == emptyIsNull ? null : [] : json.map((v) => UserDetailDTO.fromJson(v)).toList(growable: true == growable); static Map mapFromJson(Map json) { final map = {}; if (json != null && json.isNotEmpty) { json.forEach((String key, dynamic v) => map[key] = UserDetailDTO.fromJson(v)); } return map; } // maps a json object with a list of UserDetailDTO-objects as value to a dart map static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { final map = >{}; if (json != null && json.isNotEmpty) { json.forEach((String key, dynamic v) { map[key] = UserDetailDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); }); } return map; } }