toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final keyLocation = this.keyLocation;
  final claimRegex = this.claimRegex;
  final groupAttributeField = this.groupAttributeField;
  final issuer = this.issuer;
  final secretManagerArn = this.secretManagerArn;
  final url = this.url;
  final userNameAttributeField = this.userNameAttributeField;
  return {
    'KeyLocation': keyLocation.toValue(),
    if (claimRegex != null) 'ClaimRegex': claimRegex,
    if (groupAttributeField != null)
      'GroupAttributeField': groupAttributeField,
    if (issuer != null) 'Issuer': issuer,
    if (secretManagerArn != null) 'SecretManagerArn': secretManagerArn,
    if (url != null) 'URL': url,
    if (userNameAttributeField != null)
      'UserNameAttributeField': userNameAttributeField,
  };
}