toJson method

Map<String, Object?> toJson()

Implementation

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

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