toJson method

Map<String, dynamic> toJson()

Implementation

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