SubnetworkLogConfig.fromJson constructor

SubnetworkLogConfig.fromJson(
  1. Map _json
)

Implementation

SubnetworkLogConfig.fromJson(core.Map _json) {
  if (_json.containsKey("aggregationInterval")) {
    aggregationInterval = _json["aggregationInterval"];
  }
  if (_json.containsKey("enable")) {
    enable = _json["enable"];
  }
  if (_json.containsKey("filterExpr")) {
    filterExpr = _json["filterExpr"];
  }
  if (_json.containsKey("flowSampling")) {
    flowSampling = _json["flowSampling"].toDouble();
  }
  if (_json.containsKey("metadata")) {
    metadata = _json["metadata"];
  }
  if (_json.containsKey("metadataFields")) {
    metadataFields =
        (_json["metadataFields"] as core.List).cast<core.String>();
  }
}