LogMetric.fromJson constructor

LogMetric.fromJson(
  1. Map json_
)

Implementation

LogMetric.fromJson(core.Map json_)
    : this(
        bucketName: json_.containsKey('bucketName')
            ? json_['bucketName'] as core.String
            : null,
        bucketOptions: json_.containsKey('bucketOptions')
            ? BucketOptions.fromJson(
                json_['bucketOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        disabled: json_.containsKey('disabled')
            ? json_['disabled'] as core.bool
            : null,
        filter: json_.containsKey('filter')
            ? json_['filter'] as core.String
            : null,
        labelExtractors: json_.containsKey('labelExtractors')
            ? (json_['labelExtractors']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        metricDescriptor: json_.containsKey('metricDescriptor')
            ? MetricDescriptor.fromJson(json_['metricDescriptor']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        resourceName: json_.containsKey('resourceName')
            ? json_['resourceName'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        valueExtractor: json_.containsKey('valueExtractor')
            ? json_['valueExtractor'] as core.String
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );