toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final enabled = this.enabled;
  final identityPoolId = this.identityPoolId;
  final roleArn = this.roleArn;
  final userPoolId = this.userPoolId;
  return {
    if (enabled != null) 'Enabled': enabled,
    if (identityPoolId != null) 'IdentityPoolId': identityPoolId,
    if (roleArn != null) 'RoleArn': roleArn,
    if (userPoolId != null) 'UserPoolId': userPoolId,
  };
}