toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final messageConfiguration = this.messageConfiguration;
  final addresses = this.addresses;
  final context = this.context;
  final endpoints = this.endpoints;
  final templateConfiguration = this.templateConfiguration;
  final traceId = this.traceId;
  return {
    'MessageConfiguration': messageConfiguration,
    if (addresses != null) 'Addresses': addresses,
    if (context != null) 'Context': context,
    if (endpoints != null) 'Endpoints': endpoints,
    if (templateConfiguration != null)
      'TemplateConfiguration': templateConfiguration,
    if (traceId != null) 'TraceId': traceId,
  };
}