DiscoveredWorkload.fromJson constructor

DiscoveredWorkload.fromJson(
  1. Map json_
)

Implementation

DiscoveredWorkload.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        workloadProperties: json_.containsKey('workloadProperties')
            ? WorkloadProperties.fromJson(json_['workloadProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        workloadReference: json_.containsKey('workloadReference')
            ? WorkloadReference.fromJson(json_['workloadReference']
                as core.Map<core.String, core.dynamic>)
            : null,
      );