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