CognitoOptions.fromJson constructor

CognitoOptions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CognitoOptions.fromJson(Map<String, dynamic> json) {
  return CognitoOptions(
    enabled: json['Enabled'] as bool?,
    identityPoolId: json['IdentityPoolId'] as String?,
    roleArn: json['RoleArn'] as String?,
    userPoolId: json['UserPoolId'] as String?,
  );
}