PatchbayCaptureDiffRequestWire.fromJson constructor

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

Decodes a strict JSON object at path.

Implementation

factory PatchbayCaptureDiffRequestWire.fromJson(
  Map<String, Object?> json, {
  String path = r'$',
}) {
  _wireKeys(json, const <String>{'beforeBlobId', 'afterBlobId'}, path);
  return PatchbayCaptureDiffRequestWire(
    beforeBlobId: _wireString(json['beforeBlobId'], '$path.beforeBlobId'),
    afterBlobId: _wireString(json['afterBlobId'], '$path.afterBlobId'),
  );
}