mirror of
https://github.com/hanzo-dart/sdk.git
synced 2026-10-30 19:32:47 +00:00
Projected from hanzo-inc/cloud@59ec4deb4 openapi.yaml, sha256 e7e90d5445aeccfe332d942d0edd7a77df14336d97a445b71fb2f3047db65192. This client had emitted NOTHING for four releases: openapi-generator 7.14.0, the version the fleet pins, dies in AbstractDartCodegen.fromProperty with `JsonSchema cannot be cast to ComposedSchema` on our polymorphic request bodies. hanzoai/openapi now lets one language pin past the fleet, and dart is pinned at 7.19.0, which emits it cleanly.
897 lines
34 KiB
Dart
897 lines
34 KiB
Dart
//
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
//
|
|
// @dart=2.18
|
|
|
|
// 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 hanzoai.cloud;
|
|
|
|
class IamProvider {
|
|
/// Returns a new [IamProvider] instance.
|
|
IamProvider({
|
|
this.appId,
|
|
this.bucket,
|
|
this.category,
|
|
this.cert,
|
|
this.clientId,
|
|
this.clientId2,
|
|
this.clientSecret,
|
|
this.clientSecret2,
|
|
this.content,
|
|
this.createdAt,
|
|
this.createdTime,
|
|
this.customAuthUrl,
|
|
this.customLogo,
|
|
this.customTokenUrl,
|
|
this.customUserInfoUrl,
|
|
this.deleted,
|
|
this.disableSsl,
|
|
this.displayName,
|
|
this.domain,
|
|
this.emailRegex,
|
|
this.enablePkce,
|
|
this.enableProxy,
|
|
this.enableSignAuthnRequest,
|
|
this.endpoint,
|
|
this.host,
|
|
this.httpHeaders = const {},
|
|
this.id,
|
|
this.idP,
|
|
this.intranetEndpoint,
|
|
this.issuerUrl,
|
|
this.metadata,
|
|
this.method,
|
|
this.name,
|
|
this.owner,
|
|
this.pathPrefix,
|
|
this.port,
|
|
this.providerUrl,
|
|
this.receiver,
|
|
this.regionId,
|
|
this.scopes,
|
|
this.signName,
|
|
this.sslMode,
|
|
this.subType,
|
|
this.templateCode,
|
|
this.title,
|
|
this.type,
|
|
this.updatedAt,
|
|
this.userMapping = const {},
|
|
});
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? appId;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? bucket;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? category;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? cert;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? clientId;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? clientId2;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? clientSecret;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? clientSecret2;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? content;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
DateTime? createdAt;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? createdTime;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? customAuthUrl;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? customLogo;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? customTokenUrl;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? customUserInfoUrl;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
bool? deleted;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
bool? disableSsl;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? displayName;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? domain;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? emailRegex;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
bool? enablePkce;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
bool? enableProxy;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
bool? enableSignAuthnRequest;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? endpoint;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? host;
|
|
|
|
Map<String, String> httpHeaders;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? id;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? idP;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? intranetEndpoint;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? issuerUrl;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? metadata;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? method;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? name;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? owner;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? pathPrefix;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
int? port;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? providerUrl;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? receiver;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? regionId;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? scopes;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? signName;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? sslMode;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? subType;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? templateCode;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? title;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? type;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
DateTime? updatedAt;
|
|
|
|
Map<String, String> userMapping;
|
|
|
|
@override
|
|
bool operator ==(Object other) => identical(this, other) || other is IamProvider &&
|
|
other.appId == appId &&
|
|
other.bucket == bucket &&
|
|
other.category == category &&
|
|
other.cert == cert &&
|
|
other.clientId == clientId &&
|
|
other.clientId2 == clientId2 &&
|
|
other.clientSecret == clientSecret &&
|
|
other.clientSecret2 == clientSecret2 &&
|
|
other.content == content &&
|
|
other.createdAt == createdAt &&
|
|
other.createdTime == createdTime &&
|
|
other.customAuthUrl == customAuthUrl &&
|
|
other.customLogo == customLogo &&
|
|
other.customTokenUrl == customTokenUrl &&
|
|
other.customUserInfoUrl == customUserInfoUrl &&
|
|
other.deleted == deleted &&
|
|
other.disableSsl == disableSsl &&
|
|
other.displayName == displayName &&
|
|
other.domain == domain &&
|
|
other.emailRegex == emailRegex &&
|
|
other.enablePkce == enablePkce &&
|
|
other.enableProxy == enableProxy &&
|
|
other.enableSignAuthnRequest == enableSignAuthnRequest &&
|
|
other.endpoint == endpoint &&
|
|
other.host == host &&
|
|
_deepEquality.equals(other.httpHeaders, httpHeaders) &&
|
|
other.id == id &&
|
|
other.idP == idP &&
|
|
other.intranetEndpoint == intranetEndpoint &&
|
|
other.issuerUrl == issuerUrl &&
|
|
other.metadata == metadata &&
|
|
other.method == method &&
|
|
other.name == name &&
|
|
other.owner == owner &&
|
|
other.pathPrefix == pathPrefix &&
|
|
other.port == port &&
|
|
other.providerUrl == providerUrl &&
|
|
other.receiver == receiver &&
|
|
other.regionId == regionId &&
|
|
other.scopes == scopes &&
|
|
other.signName == signName &&
|
|
other.sslMode == sslMode &&
|
|
other.subType == subType &&
|
|
other.templateCode == templateCode &&
|
|
other.title == title &&
|
|
other.type == type &&
|
|
other.updatedAt == updatedAt &&
|
|
_deepEquality.equals(other.userMapping, userMapping);
|
|
|
|
@override
|
|
int get hashCode =>
|
|
// ignore: unnecessary_parenthesis
|
|
(appId == null ? 0 : appId!.hashCode) +
|
|
(bucket == null ? 0 : bucket!.hashCode) +
|
|
(category == null ? 0 : category!.hashCode) +
|
|
(cert == null ? 0 : cert!.hashCode) +
|
|
(clientId == null ? 0 : clientId!.hashCode) +
|
|
(clientId2 == null ? 0 : clientId2!.hashCode) +
|
|
(clientSecret == null ? 0 : clientSecret!.hashCode) +
|
|
(clientSecret2 == null ? 0 : clientSecret2!.hashCode) +
|
|
(content == null ? 0 : content!.hashCode) +
|
|
(createdAt == null ? 0 : createdAt!.hashCode) +
|
|
(createdTime == null ? 0 : createdTime!.hashCode) +
|
|
(customAuthUrl == null ? 0 : customAuthUrl!.hashCode) +
|
|
(customLogo == null ? 0 : customLogo!.hashCode) +
|
|
(customTokenUrl == null ? 0 : customTokenUrl!.hashCode) +
|
|
(customUserInfoUrl == null ? 0 : customUserInfoUrl!.hashCode) +
|
|
(deleted == null ? 0 : deleted!.hashCode) +
|
|
(disableSsl == null ? 0 : disableSsl!.hashCode) +
|
|
(displayName == null ? 0 : displayName!.hashCode) +
|
|
(domain == null ? 0 : domain!.hashCode) +
|
|
(emailRegex == null ? 0 : emailRegex!.hashCode) +
|
|
(enablePkce == null ? 0 : enablePkce!.hashCode) +
|
|
(enableProxy == null ? 0 : enableProxy!.hashCode) +
|
|
(enableSignAuthnRequest == null ? 0 : enableSignAuthnRequest!.hashCode) +
|
|
(endpoint == null ? 0 : endpoint!.hashCode) +
|
|
(host == null ? 0 : host!.hashCode) +
|
|
(httpHeaders.hashCode) +
|
|
(id == null ? 0 : id!.hashCode) +
|
|
(idP == null ? 0 : idP!.hashCode) +
|
|
(intranetEndpoint == null ? 0 : intranetEndpoint!.hashCode) +
|
|
(issuerUrl == null ? 0 : issuerUrl!.hashCode) +
|
|
(metadata == null ? 0 : metadata!.hashCode) +
|
|
(method == null ? 0 : method!.hashCode) +
|
|
(name == null ? 0 : name!.hashCode) +
|
|
(owner == null ? 0 : owner!.hashCode) +
|
|
(pathPrefix == null ? 0 : pathPrefix!.hashCode) +
|
|
(port == null ? 0 : port!.hashCode) +
|
|
(providerUrl == null ? 0 : providerUrl!.hashCode) +
|
|
(receiver == null ? 0 : receiver!.hashCode) +
|
|
(regionId == null ? 0 : regionId!.hashCode) +
|
|
(scopes == null ? 0 : scopes!.hashCode) +
|
|
(signName == null ? 0 : signName!.hashCode) +
|
|
(sslMode == null ? 0 : sslMode!.hashCode) +
|
|
(subType == null ? 0 : subType!.hashCode) +
|
|
(templateCode == null ? 0 : templateCode!.hashCode) +
|
|
(title == null ? 0 : title!.hashCode) +
|
|
(type == null ? 0 : type!.hashCode) +
|
|
(updatedAt == null ? 0 : updatedAt!.hashCode) +
|
|
(userMapping.hashCode);
|
|
|
|
@override
|
|
String toString() => 'IamProvider[appId=$appId, bucket=$bucket, category=$category, cert=$cert, clientId=$clientId, clientId2=$clientId2, clientSecret=$clientSecret, clientSecret2=$clientSecret2, content=$content, createdAt=$createdAt, createdTime=$createdTime, customAuthUrl=$customAuthUrl, customLogo=$customLogo, customTokenUrl=$customTokenUrl, customUserInfoUrl=$customUserInfoUrl, deleted=$deleted, disableSsl=$disableSsl, displayName=$displayName, domain=$domain, emailRegex=$emailRegex, enablePkce=$enablePkce, enableProxy=$enableProxy, enableSignAuthnRequest=$enableSignAuthnRequest, endpoint=$endpoint, host=$host, httpHeaders=$httpHeaders, id=$id, idP=$idP, intranetEndpoint=$intranetEndpoint, issuerUrl=$issuerUrl, metadata=$metadata, method=$method, name=$name, owner=$owner, pathPrefix=$pathPrefix, port=$port, providerUrl=$providerUrl, receiver=$receiver, regionId=$regionId, scopes=$scopes, signName=$signName, sslMode=$sslMode, subType=$subType, templateCode=$templateCode, title=$title, type=$type, updatedAt=$updatedAt, userMapping=$userMapping]';
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final json = <String, dynamic>{};
|
|
if (this.appId != null) {
|
|
json[r'appId'] = this.appId;
|
|
} else {
|
|
json[r'appId'] = null;
|
|
}
|
|
if (this.bucket != null) {
|
|
json[r'bucket'] = this.bucket;
|
|
} else {
|
|
json[r'bucket'] = null;
|
|
}
|
|
if (this.category != null) {
|
|
json[r'category'] = this.category;
|
|
} else {
|
|
json[r'category'] = null;
|
|
}
|
|
if (this.cert != null) {
|
|
json[r'cert'] = this.cert;
|
|
} else {
|
|
json[r'cert'] = null;
|
|
}
|
|
if (this.clientId != null) {
|
|
json[r'clientId'] = this.clientId;
|
|
} else {
|
|
json[r'clientId'] = null;
|
|
}
|
|
if (this.clientId2 != null) {
|
|
json[r'clientId2'] = this.clientId2;
|
|
} else {
|
|
json[r'clientId2'] = null;
|
|
}
|
|
if (this.clientSecret != null) {
|
|
json[r'clientSecret'] = this.clientSecret;
|
|
} else {
|
|
json[r'clientSecret'] = null;
|
|
}
|
|
if (this.clientSecret2 != null) {
|
|
json[r'clientSecret2'] = this.clientSecret2;
|
|
} else {
|
|
json[r'clientSecret2'] = null;
|
|
}
|
|
if (this.content != null) {
|
|
json[r'content'] = this.content;
|
|
} else {
|
|
json[r'content'] = null;
|
|
}
|
|
if (this.createdAt != null) {
|
|
json[r'createdAt'] = this.createdAt!.toUtc().toIso8601String();
|
|
} else {
|
|
json[r'createdAt'] = null;
|
|
}
|
|
if (this.createdTime != null) {
|
|
json[r'createdTime'] = this.createdTime;
|
|
} else {
|
|
json[r'createdTime'] = null;
|
|
}
|
|
if (this.customAuthUrl != null) {
|
|
json[r'customAuthUrl'] = this.customAuthUrl;
|
|
} else {
|
|
json[r'customAuthUrl'] = null;
|
|
}
|
|
if (this.customLogo != null) {
|
|
json[r'customLogo'] = this.customLogo;
|
|
} else {
|
|
json[r'customLogo'] = null;
|
|
}
|
|
if (this.customTokenUrl != null) {
|
|
json[r'customTokenUrl'] = this.customTokenUrl;
|
|
} else {
|
|
json[r'customTokenUrl'] = null;
|
|
}
|
|
if (this.customUserInfoUrl != null) {
|
|
json[r'customUserInfoUrl'] = this.customUserInfoUrl;
|
|
} else {
|
|
json[r'customUserInfoUrl'] = null;
|
|
}
|
|
if (this.deleted != null) {
|
|
json[r'deleted'] = this.deleted;
|
|
} else {
|
|
json[r'deleted'] = null;
|
|
}
|
|
if (this.disableSsl != null) {
|
|
json[r'disableSsl'] = this.disableSsl;
|
|
} else {
|
|
json[r'disableSsl'] = null;
|
|
}
|
|
if (this.displayName != null) {
|
|
json[r'displayName'] = this.displayName;
|
|
} else {
|
|
json[r'displayName'] = null;
|
|
}
|
|
if (this.domain != null) {
|
|
json[r'domain'] = this.domain;
|
|
} else {
|
|
json[r'domain'] = null;
|
|
}
|
|
if (this.emailRegex != null) {
|
|
json[r'emailRegex'] = this.emailRegex;
|
|
} else {
|
|
json[r'emailRegex'] = null;
|
|
}
|
|
if (this.enablePkce != null) {
|
|
json[r'enablePkce'] = this.enablePkce;
|
|
} else {
|
|
json[r'enablePkce'] = null;
|
|
}
|
|
if (this.enableProxy != null) {
|
|
json[r'enableProxy'] = this.enableProxy;
|
|
} else {
|
|
json[r'enableProxy'] = null;
|
|
}
|
|
if (this.enableSignAuthnRequest != null) {
|
|
json[r'enableSignAuthnRequest'] = this.enableSignAuthnRequest;
|
|
} else {
|
|
json[r'enableSignAuthnRequest'] = null;
|
|
}
|
|
if (this.endpoint != null) {
|
|
json[r'endpoint'] = this.endpoint;
|
|
} else {
|
|
json[r'endpoint'] = null;
|
|
}
|
|
if (this.host != null) {
|
|
json[r'host'] = this.host;
|
|
} else {
|
|
json[r'host'] = null;
|
|
}
|
|
json[r'httpHeaders'] = this.httpHeaders;
|
|
if (this.id != null) {
|
|
json[r'id'] = this.id;
|
|
} else {
|
|
json[r'id'] = null;
|
|
}
|
|
if (this.idP != null) {
|
|
json[r'idP'] = this.idP;
|
|
} else {
|
|
json[r'idP'] = null;
|
|
}
|
|
if (this.intranetEndpoint != null) {
|
|
json[r'intranetEndpoint'] = this.intranetEndpoint;
|
|
} else {
|
|
json[r'intranetEndpoint'] = null;
|
|
}
|
|
if (this.issuerUrl != null) {
|
|
json[r'issuerUrl'] = this.issuerUrl;
|
|
} else {
|
|
json[r'issuerUrl'] = null;
|
|
}
|
|
if (this.metadata != null) {
|
|
json[r'metadata'] = this.metadata;
|
|
} else {
|
|
json[r'metadata'] = null;
|
|
}
|
|
if (this.method != null) {
|
|
json[r'method'] = this.method;
|
|
} else {
|
|
json[r'method'] = null;
|
|
}
|
|
if (this.name != null) {
|
|
json[r'name'] = this.name;
|
|
} else {
|
|
json[r'name'] = null;
|
|
}
|
|
if (this.owner != null) {
|
|
json[r'owner'] = this.owner;
|
|
} else {
|
|
json[r'owner'] = null;
|
|
}
|
|
if (this.pathPrefix != null) {
|
|
json[r'pathPrefix'] = this.pathPrefix;
|
|
} else {
|
|
json[r'pathPrefix'] = null;
|
|
}
|
|
if (this.port != null) {
|
|
json[r'port'] = this.port;
|
|
} else {
|
|
json[r'port'] = null;
|
|
}
|
|
if (this.providerUrl != null) {
|
|
json[r'providerUrl'] = this.providerUrl;
|
|
} else {
|
|
json[r'providerUrl'] = null;
|
|
}
|
|
if (this.receiver != null) {
|
|
json[r'receiver'] = this.receiver;
|
|
} else {
|
|
json[r'receiver'] = null;
|
|
}
|
|
if (this.regionId != null) {
|
|
json[r'regionId'] = this.regionId;
|
|
} else {
|
|
json[r'regionId'] = null;
|
|
}
|
|
if (this.scopes != null) {
|
|
json[r'scopes'] = this.scopes;
|
|
} else {
|
|
json[r'scopes'] = null;
|
|
}
|
|
if (this.signName != null) {
|
|
json[r'signName'] = this.signName;
|
|
} else {
|
|
json[r'signName'] = null;
|
|
}
|
|
if (this.sslMode != null) {
|
|
json[r'sslMode'] = this.sslMode;
|
|
} else {
|
|
json[r'sslMode'] = null;
|
|
}
|
|
if (this.subType != null) {
|
|
json[r'subType'] = this.subType;
|
|
} else {
|
|
json[r'subType'] = null;
|
|
}
|
|
if (this.templateCode != null) {
|
|
json[r'templateCode'] = this.templateCode;
|
|
} else {
|
|
json[r'templateCode'] = null;
|
|
}
|
|
if (this.title != null) {
|
|
json[r'title'] = this.title;
|
|
} else {
|
|
json[r'title'] = null;
|
|
}
|
|
if (this.type != null) {
|
|
json[r'type'] = this.type;
|
|
} else {
|
|
json[r'type'] = null;
|
|
}
|
|
if (this.updatedAt != null) {
|
|
json[r'updatedAt'] = this.updatedAt!.toUtc().toIso8601String();
|
|
} else {
|
|
json[r'updatedAt'] = null;
|
|
}
|
|
json[r'userMapping'] = this.userMapping;
|
|
return json;
|
|
}
|
|
|
|
/// Returns a new [IamProvider] instance and imports its values from
|
|
/// [value] if it's a [Map], null otherwise.
|
|
// ignore: prefer_constructors_over_static_methods
|
|
static IamProvider? fromJson(dynamic value) {
|
|
if (value is Map) {
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
// Ensure that the map contains the required keys.
|
|
// Note 1: the values aren't checked for validity beyond being non-null.
|
|
// Note 2: this code is stripped in release mode!
|
|
assert(() {
|
|
requiredKeys.forEach((key) {
|
|
assert(json.containsKey(key), 'Required key "IamProvider[$key]" is missing from JSON.');
|
|
assert(json[key] != null, 'Required key "IamProvider[$key]" has a null value in JSON.');
|
|
});
|
|
return true;
|
|
}());
|
|
|
|
return IamProvider(
|
|
appId: mapValueOfType<String>(json, r'appId'),
|
|
bucket: mapValueOfType<String>(json, r'bucket'),
|
|
category: mapValueOfType<String>(json, r'category'),
|
|
cert: mapValueOfType<String>(json, r'cert'),
|
|
clientId: mapValueOfType<String>(json, r'clientId'),
|
|
clientId2: mapValueOfType<String>(json, r'clientId2'),
|
|
clientSecret: mapValueOfType<String>(json, r'clientSecret'),
|
|
clientSecret2: mapValueOfType<String>(json, r'clientSecret2'),
|
|
content: mapValueOfType<String>(json, r'content'),
|
|
createdAt: mapDateTime(json, r'createdAt', r''),
|
|
createdTime: mapValueOfType<String>(json, r'createdTime'),
|
|
customAuthUrl: mapValueOfType<String>(json, r'customAuthUrl'),
|
|
customLogo: mapValueOfType<String>(json, r'customLogo'),
|
|
customTokenUrl: mapValueOfType<String>(json, r'customTokenUrl'),
|
|
customUserInfoUrl: mapValueOfType<String>(json, r'customUserInfoUrl'),
|
|
deleted: mapValueOfType<bool>(json, r'deleted'),
|
|
disableSsl: mapValueOfType<bool>(json, r'disableSsl'),
|
|
displayName: mapValueOfType<String>(json, r'displayName'),
|
|
domain: mapValueOfType<String>(json, r'domain'),
|
|
emailRegex: mapValueOfType<String>(json, r'emailRegex'),
|
|
enablePkce: mapValueOfType<bool>(json, r'enablePkce'),
|
|
enableProxy: mapValueOfType<bool>(json, r'enableProxy'),
|
|
enableSignAuthnRequest: mapValueOfType<bool>(json, r'enableSignAuthnRequest'),
|
|
endpoint: mapValueOfType<String>(json, r'endpoint'),
|
|
host: mapValueOfType<String>(json, r'host'),
|
|
httpHeaders: mapCastOfType<String, String>(json, r'httpHeaders') ?? const {},
|
|
id: mapValueOfType<String>(json, r'id'),
|
|
idP: mapValueOfType<String>(json, r'idP'),
|
|
intranetEndpoint: mapValueOfType<String>(json, r'intranetEndpoint'),
|
|
issuerUrl: mapValueOfType<String>(json, r'issuerUrl'),
|
|
metadata: mapValueOfType<String>(json, r'metadata'),
|
|
method: mapValueOfType<String>(json, r'method'),
|
|
name: mapValueOfType<String>(json, r'name'),
|
|
owner: mapValueOfType<String>(json, r'owner'),
|
|
pathPrefix: mapValueOfType<String>(json, r'pathPrefix'),
|
|
port: mapValueOfType<int>(json, r'port'),
|
|
providerUrl: mapValueOfType<String>(json, r'providerUrl'),
|
|
receiver: mapValueOfType<String>(json, r'receiver'),
|
|
regionId: mapValueOfType<String>(json, r'regionId'),
|
|
scopes: mapValueOfType<String>(json, r'scopes'),
|
|
signName: mapValueOfType<String>(json, r'signName'),
|
|
sslMode: mapValueOfType<String>(json, r'sslMode'),
|
|
subType: mapValueOfType<String>(json, r'subType'),
|
|
templateCode: mapValueOfType<String>(json, r'templateCode'),
|
|
title: mapValueOfType<String>(json, r'title'),
|
|
type: mapValueOfType<String>(json, r'type'),
|
|
updatedAt: mapDateTime(json, r'updatedAt', r''),
|
|
userMapping: mapCastOfType<String, String>(json, r'userMapping') ?? const {},
|
|
);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
static List<IamProvider> listFromJson(dynamic json, {bool growable = false,}) {
|
|
final result = <IamProvider>[];
|
|
if (json is List && json.isNotEmpty) {
|
|
for (final row in json) {
|
|
final value = IamProvider.fromJson(row);
|
|
if (value != null) {
|
|
result.add(value);
|
|
}
|
|
}
|
|
}
|
|
return result.toList(growable: growable);
|
|
}
|
|
|
|
static Map<String, IamProvider> mapFromJson(dynamic json) {
|
|
final map = <String, IamProvider>{};
|
|
if (json is Map && json.isNotEmpty) {
|
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
for (final entry in json.entries) {
|
|
final value = IamProvider.fromJson(entry.value);
|
|
if (value != null) {
|
|
map[entry.key] = value;
|
|
}
|
|
}
|
|
}
|
|
return map;
|
|
}
|
|
|
|
// maps a json object with a list of IamProvider-objects as value to a dart map
|
|
static Map<String, List<IamProvider>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
final map = <String, List<IamProvider>>{};
|
|
if (json is Map && json.isNotEmpty) {
|
|
// ignore: parameter_assignments
|
|
json = json.cast<String, dynamic>();
|
|
for (final entry in json.entries) {
|
|
map[entry.key] = IamProvider.listFromJson(entry.value, growable: growable,);
|
|
}
|
|
}
|
|
return map;
|
|
}
|
|
|
|
/// The list of required keys that must be present in a JSON.
|
|
static const requiredKeys = <String>{
|
|
};
|
|
}
|
|
|