UtilizationReport.fromJson constructor

UtilizationReport.fromJson(
  1. Map json_
)

Implementation

UtilizationReport.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        frameEndTime: json_.containsKey('frameEndTime')
            ? json_['frameEndTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateTime: json_.containsKey('stateTime')
            ? json_['stateTime'] as core.String
            : null,
        timeFrame: json_.containsKey('timeFrame')
            ? json_['timeFrame'] as core.String
            : null,
        vmCount: json_.containsKey('vmCount')
            ? json_['vmCount'] as core.int
            : null,
        vms: json_.containsKey('vms')
            ? (json_['vms'] as core.List)
                .map((value) => VmUtilizationInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );