fromJson static method

Delta fromJson(
  1. List data, {
  2. DataDecoder? dataDecoder,
})

Creates Delta from de-serialized JSON representation.

If dataDecoder parameter is not null then it is used to additionally decode the operation's data object. Only applied to insert operations.

Implementation

static Delta fromJson(List data, {DataDecoder? dataDecoder}) {
  return Delta._(data.map((op) => Operation.fromJson(op, dataDecoder: dataDecoder)).toList());
}