BasicSli.fromJson constructor

BasicSli.fromJson(
  1. Map json_
)

Implementation

BasicSli.fromJson(core.Map json_)
    : this(
        availability: json_.containsKey('availability')
            ? AvailabilityCriteria.fromJson(
                json_['availability'] as core.Map<core.String, core.dynamic>)
            : null,
        latency: json_.containsKey('latency')
            ? LatencyCriteria.fromJson(
                json_['latency'] as core.Map<core.String, core.dynamic>)
            : null,
        location: json_.containsKey('location')
            ? (json_['location'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        method: json_.containsKey('method')
            ? (json_['method'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        version: json_.containsKey('version')
            ? (json_['version'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );