PatchbayInspectSelectRequestWire.fromJson constructor

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

Decodes a strict JSON object at path.

Implementation

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