toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final accessKeyId = this.accessKeyId;
  final accountId = this.accountId;
  final createdAt = this.createdAt;
  final principalId = this.principalId;
  final principalName = this.principalName;
  final principalType = this.principalType;
  final sessionContext = this.sessionContext;
  final status = this.status;
  final userName = this.userName;
  return {
    if (accessKeyId != null) 'AccessKeyId': accessKeyId,
    if (accountId != null) 'AccountId': accountId,
    if (createdAt != null) 'CreatedAt': createdAt,
    if (principalId != null) 'PrincipalId': principalId,
    if (principalName != null) 'PrincipalName': principalName,
    if (principalType != null) 'PrincipalType': principalType,
    if (sessionContext != null) 'SessionContext': sessionContext,
    if (status != null) 'Status': status.toValue(),
    if (userName != null) 'UserName': userName,
  };
}