toJson method
Implementation
Map<String, dynamic> toJson() {
final targetArn = this.targetArn;
final payloadVersion = this.payloadVersion;
return {
'targetArn': targetArn,
if (payloadVersion != null) 'payloadVersion': payloadVersion,
};
}