toJson method
Implementation
Map<String, dynamic> toJson() {
final encrypted = this.encrypted;
final frequency = this.frequency;
final kmsKeyId = this.kmsKeyId;
final licenseType = this.licenseType;
final numberOfRecentAmisToKeep = this.numberOfRecentAmisToKeep;
final runOnce = this.runOnce;
final seedTime = this.seedTime;
return {
if (encrypted != null) 'encrypted': encrypted,
if (frequency != null) 'frequency': frequency,
if (kmsKeyId != null) 'kmsKeyId': kmsKeyId,
if (licenseType != null) 'licenseType': licenseType.toValue(),
if (numberOfRecentAmisToKeep != null)
'numberOfRecentAmisToKeep': numberOfRecentAmisToKeep,
if (runOnce != null) 'runOnce': runOnce,
if (seedTime != null) 'seedTime': unixTimestampToJson(seedTime),
};
}