toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final raw = this.raw;
  final simple = this.simple;
  final template = this.template;
  return {
    if (raw != null) 'Raw': raw,
    if (simple != null) 'Simple': simple,
    if (template != null) 'Template': template,
  };
}