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