CreateCollectdTimeSeriesRequest.fromJson constructor

CreateCollectdTimeSeriesRequest.fromJson(
  1. Map json_
)

Implementation

CreateCollectdTimeSeriesRequest.fromJson(core.Map json_)
    : this(
        collectdPayloads: json_.containsKey('collectdPayloads')
            ? (json_['collectdPayloads'] as core.List)
                .map((value) => CollectdPayload.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        collectdVersion: json_.containsKey('collectdVersion')
            ? json_['collectdVersion'] as core.String
            : null,
        resource: json_.containsKey('resource')
            ? MonitoredResource.fromJson(
                json_['resource'] as core.Map<core.String, core.dynamic>)
            : null,
      );