toJson method
Implementation
Map<String, dynamic> toJson() {
final recipient = this.recipient;
final bounceType = this.bounceType;
final recipientArn = this.recipientArn;
final recipientDsnFields = this.recipientDsnFields;
return {
'Recipient': recipient,
if (bounceType != null) 'BounceType': bounceType.toValue(),
if (recipientArn != null) 'RecipientArn': recipientArn,
if (recipientDsnFields != null) 'RecipientDsnFields': recipientDsnFields,
};
}