toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final deliveryUri = this.deliveryUri;
  final endpointTypes = this.endpointTypes;
  final messageConfig = this.messageConfig;
  final nextActivity = this.nextActivity;
  final templateName = this.templateName;
  final templateVersion = this.templateVersion;
  return {
    if (deliveryUri != null) 'DeliveryUri': deliveryUri,
    if (endpointTypes != null)
      'EndpointTypes': endpointTypes.map((e) => e.toValue()).toList(),
    if (messageConfig != null) 'MessageConfig': messageConfig,
    if (nextActivity != null) 'NextActivity': nextActivity,
    if (templateName != null) 'TemplateName': templateName,
    if (templateVersion != null) 'TemplateVersion': templateVersion,
  };
}