toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var plain = this.plain;
  var view = this.view;

  final json = <String, Object?>{};
  if (plain != null) {
    json[r'plain'] = plain.toJson();
  }
  if (view != null) {
    json[r'view'] = view.toJson();
  }
  return json;
}