toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final account = this.account;
  final caCertificateId = this.caCertificateId;
  final clientId = this.clientId;
  final cognitoIdentityPoolId = this.cognitoIdentityPoolId;
  final deviceCertificateId = this.deviceCertificateId;
  final iamRoleArn = this.iamRoleArn;
  final policyVersionIdentifier = this.policyVersionIdentifier;
  final roleAliasArn = this.roleAliasArn;
  return {
    if (account != null) 'account': account,
    if (caCertificateId != null) 'caCertificateId': caCertificateId,
    if (clientId != null) 'clientId': clientId,
    if (cognitoIdentityPoolId != null)
      'cognitoIdentityPoolId': cognitoIdentityPoolId,
    if (deviceCertificateId != null)
      'deviceCertificateId': deviceCertificateId,
    if (iamRoleArn != null) 'iamRoleArn': iamRoleArn,
    if (policyVersionIdentifier != null)
      'policyVersionIdentifier': policyVersionIdentifier,
    if (roleAliasArn != null) 'roleAliasArn': roleAliasArn,
  };
}