toJson method

  1. @override
Map<String, dynamic> toJson()

Implementation

@override
Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'templateId': templateId,
    'referenceId': referenceId,
    'environmentId': environmentId,
    'environment': environment?.toString().split('.').last,
    'fields': fields,
    'theme': theme?.toJson(),
    'routingCountry': routingCountry,
  };
}