NetworkConfiguration.fromJson constructor

NetworkConfiguration.fromJson(
  1. Map _json
)

Implementation

NetworkConfiguration.fromJson(core.Map _json)
    : this(
        downRule: _json.containsKey('downRule')
            ? TrafficRule.fromJson(
                _json['downRule'] as core.Map<core.String, core.dynamic>)
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        upRule: _json.containsKey('upRule')
            ? TrafficRule.fromJson(
                _json['upRule'] as core.Map<core.String, core.dynamic>)
            : null,
      );