toJson method
Implementation
Map<String, dynamic> toJson() {
final amiTags = this.amiTags;
final description = this.description;
final kmsKeyId = this.kmsKeyId;
final launchPermission = this.launchPermission;
final name = this.name;
final targetAccountIds = this.targetAccountIds;
return {
if (amiTags != null) 'amiTags': amiTags,
if (description != null) 'description': description,
if (kmsKeyId != null) 'kmsKeyId': kmsKeyId,
if (launchPermission != null) 'launchPermission': launchPermission,
if (name != null) 'name': name,
if (targetAccountIds != null) 'targetAccountIds': targetAccountIds,
};
}