UsageReport.fromJson constructor

UsageReport.fromJson(
  1. Map json_
)

Implementation

UsageReport.fromJson(core.Map json_)
    : this(
        date: json_.containsKey('date') ? json_['date'] as core.String : null,
        entity: json_.containsKey('entity')
            ? UsageReportEntity.fromJson(
                json_['entity'] as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.List)
                .map((value) => UsageReportParameters.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );