toJson method
Implementation
Map<String, dynamic> toJson() {
final deleted = this.deleted;
final description = this.description;
final kmsKeyId = this.kmsKeyId;
final name = this.name;
final rotationEnabled = this.rotationEnabled;
final rotationLambdaArn = this.rotationLambdaArn;
final rotationOccurredWithinFrequency =
this.rotationOccurredWithinFrequency;
final rotationRules = this.rotationRules;
return {
if (deleted != null) 'Deleted': deleted,
if (description != null) 'Description': description,
if (kmsKeyId != null) 'KmsKeyId': kmsKeyId,
if (name != null) 'Name': name,
if (rotationEnabled != null) 'RotationEnabled': rotationEnabled,
if (rotationLambdaArn != null) 'RotationLambdaArn': rotationLambdaArn,
if (rotationOccurredWithinFrequency != null)
'RotationOccurredWithinFrequency': rotationOccurredWithinFrequency,
if (rotationRules != null) 'RotationRules': rotationRules,
};
}