toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final from = this.from;
  final op = this.op;
  final path = this.path;
  final value = this.value;
  return {
    if (from != null) 'from': from,
    if (op != null) 'op': op.toValue(),
    if (path != null) 'path': path,
    if (value != null) 'value': value,
  };
}