// // 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 User { /// Returns a new [User] instance. User({ this.id, this.password, }); String id; String password; @override bool operator ==(Object other) => identical(this, other) || other is User && other.id == id && other.password == password; @override int get hashCode => (id == null ? 0 : id.hashCode) + (password == null ? 0 : password.hashCode); @override String toString() => 'User[id=$id, password=$password]'; Map toJson() { final json = {}; if (id != null) { json[r'id'] = id; } if (password != null) { json[r'password'] = password; } return json; } /// Returns a new [User] instance and imports its values from /// [json] if it's non-null, null if [json] is null. static User fromJson(Map json) => json == null ? null : User( id: json[r'id'], password: json[r'password'], ); static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => json == null || json.isEmpty ? true == emptyIsNull ? null : [] : json.map((v) => User.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] = User.fromJson(v)); } return map; } // maps a json object with a list of User-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] = User.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); }); } return map; } }