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(),
    ...dataSchema.toJson(),
  };

  if (observable != _defaultObservableValue) {
    result["observable"] = observable;
  }

  return result;
}