toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final type = this.type;
  final authenticateCognitoConfig = this.authenticateCognitoConfig;
  final authenticateOidcConfig = this.authenticateOidcConfig;
  final fixedResponseConfig = this.fixedResponseConfig;
  final forwardConfig = this.forwardConfig;
  final order = this.order;
  final redirectConfig = this.redirectConfig;
  final targetGroupArn = this.targetGroupArn;
  return {
    'Type': type.toValue(),
    if (authenticateCognitoConfig != null)
      'AuthenticateCognitoConfig': authenticateCognitoConfig,
    if (authenticateOidcConfig != null)
      'AuthenticateOidcConfig': authenticateOidcConfig,
    if (fixedResponseConfig != null)
      'FixedResponseConfig': fixedResponseConfig,
    if (forwardConfig != null) 'ForwardConfig': forwardConfig,
    if (order != null) 'Order': order,
    if (redirectConfig != null) 'RedirectConfig': redirectConfig,
    if (targetGroupArn != null) 'TargetGroupArn': targetGroupArn,
  };
}