SubnetworkLogConfig.fromJson constructor

SubnetworkLogConfig.fromJson(
  1. Map json_
)

Implementation

SubnetworkLogConfig.fromJson(core.Map json_)
    : this(
        aggregationInterval: json_.containsKey('aggregationInterval')
            ? json_['aggregationInterval'] as core.String
            : null,
        enable:
            json_.containsKey('enable') ? json_['enable'] as core.bool : null,
        filterExpr: json_.containsKey('filterExpr')
            ? json_['filterExpr'] as core.String
            : null,
        flowSampling: json_.containsKey('flowSampling')
            ? (json_['flowSampling'] as core.num).toDouble()
            : null,
        metadata: json_.containsKey('metadata')
            ? json_['metadata'] as core.String
            : null,
        metadataFields: json_.containsKey('metadataFields')
            ? (json_['metadataFields'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );