PatchbaySnapshotDiffRequestWire.fromJson constructor

PatchbaySnapshotDiffRequestWire.fromJson(
  1. Map<String, Object?> json, {
  2. String path = r'$',
})

Decodes a strict JSON object at path.

Implementation

factory PatchbaySnapshotDiffRequestWire.fromJson(
  Map<String, Object?> json, {
  String path = r'$',
}) {
  _wireKeys(json, const <String>{'fromRevision'}, path);
  return PatchbaySnapshotDiffRequestWire(
    fromRevision: _wireInt(json['fromRevision'], '$path.fromRevision'),
  );
}