GoogleCloudDatacatalogV1UsageSignal.fromJson constructor

GoogleCloudDatacatalogV1UsageSignal.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDatacatalogV1UsageSignal.fromJson(core.Map json_)
    : this(
        commonUsageWithinTimeRange:
            json_.containsKey('commonUsageWithinTimeRange')
                ? (json_['commonUsageWithinTimeRange']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      GoogleCloudDatacatalogV1CommonUsageStats.fromJson(
                          value as core.Map<core.String, core.dynamic>),
                    ),
                  )
                : null,
        favoriteCount: json_.containsKey('favoriteCount')
            ? json_['favoriteCount'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        usageWithinTimeRange: json_.containsKey('usageWithinTimeRange')
            ? (json_['usageWithinTimeRange']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudDatacatalogV1UsageStats.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );