toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final useEventVariables = this.useEventVariables;
  final csvInputTemplate = this.csvInputTemplate;
  final eventTypeName = this.eventTypeName;
  final format = this.format;
  final jsonInputTemplate = this.jsonInputTemplate;
  return {
    'useEventVariables': useEventVariables,
    if (csvInputTemplate != null) 'csvInputTemplate': csvInputTemplate,
    if (eventTypeName != null) 'eventTypeName': eventTypeName,
    if (format != null) 'format': format.toValue(),
    if (jsonInputTemplate != null) 'jsonInputTemplate': jsonInputTemplate,
  };
}