ResourceIdentifier.fromJson constructor

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

Implementation

factory ResourceIdentifier.fromJson(Map<String, dynamic> json) {
  return ResourceIdentifier(
    account: json['account'] as String?,
    caCertificateId: json['caCertificateId'] as String?,
    clientId: json['clientId'] as String?,
    cognitoIdentityPoolId: json['cognitoIdentityPoolId'] as String?,
    deviceCertificateId: json['deviceCertificateId'] as String?,
    iamRoleArn: json['iamRoleArn'] as String?,
    policyVersionIdentifier: json['policyVersionIdentifier'] != null
        ? PolicyVersionIdentifier.fromJson(
            json['policyVersionIdentifier'] as Map<String, dynamic>)
        : null,
    roleAliasArn: json['roleAliasArn'] as String?,
  );
}