toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final awsAccountId = this.awsAccountId;
  final creationDate = this.creationDate;
  final description = this.description;
  final keyId = this.keyId;
  final keyManager = this.keyManager;
  final keyState = this.keyState;
  final origin = this.origin;
  return {
    if (awsAccountId != null) 'AWSAccountId': awsAccountId,
    if (creationDate != null) 'CreationDate': creationDate,
    if (description != null) 'Description': description,
    if (keyId != null) 'KeyId': keyId,
    if (keyManager != null) 'KeyManager': keyManager,
    if (keyState != null) 'KeyState': keyState,
    if (origin != null) 'Origin': origin,
  };
}