toJson method

Map<String, dynamic> toJson()

Implementation

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