toJson method
Implementation
Map<String, dynamic> toJson() {
final accountId = this.accountId;
final arn = this.arn;
final principalId = this.principalId;
final type = this.type;
final userName = this.userName;
return {
if (accountId != null) 'AccountId': accountId,
if (arn != null) 'Arn': arn,
if (principalId != null) 'PrincipalId': principalId,
if (type != null) 'Type': type,
if (userName != null) 'UserName': userName,
};
}