toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this class object into a JSON value.

Implementation

@override
Map<String, dynamic> toJson() {
  final result = super.toJson();

  if (oneOf != null) {
    result["oneOf"] = oneOf;
  }

  if (allOf != null) {
    result["allOf"] = allOf;
  }

  return result;
}