Timeouts.fromJson constructor

Timeouts.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Timeouts.fromJson(Map<String, dynamic> json) => Timeouts(
      autoCancelTimeout: json.containsKey("autoCancelTimeout")
          ? (json["autoCancelTimeout"] as int)
          : 0,
      initialScanDelay: json.containsKey("initialScanDelay")
          ? (json["initialScanDelay"] as int)
          : 0,
    );