toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bodyOverride = this.bodyOverride;
  final channelType = this.channelType;
  final context = this.context;
  final rawContent = this.rawContent;
  final substitutions = this.substitutions;
  final titleOverride = this.titleOverride;
  return {
    if (bodyOverride != null) 'BodyOverride': bodyOverride,
    if (channelType != null) 'ChannelType': channelType.toValue(),
    if (context != null) 'Context': context,
    if (rawContent != null) 'RawContent': rawContent,
    if (substitutions != null) 'Substitutions': substitutions,
    if (titleOverride != null) 'TitleOverride': titleOverride,
  };
}