toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destination = this.destination;
  final replacementEmailContent = this.replacementEmailContent;
  final replacementTags = this.replacementTags;
  return {
    'Destination': destination,
    if (replacementEmailContent != null)
      'ReplacementEmailContent': replacementEmailContent,
    if (replacementTags != null) 'ReplacementTags': replacementTags,
  };
}