toJson method

Map<String, Object?> toJson()

Implementation

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

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