PlatformDetails.fromJson constructor

PlatformDetails.fromJson(
  1. Map json_
)

Implementation

PlatformDetails.fromJson(core.Map json_)
    : this(
        awsEc2Details: json_.containsKey('awsEc2Details')
            ? AwsEc2PlatformDetails.fromJson(
                json_['awsEc2Details'] as core.Map<core.String, core.dynamic>)
            : null,
        azureVmDetails: json_.containsKey('azureVmDetails')
            ? AzureVmPlatformDetails.fromJson(json_['azureVmDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        genericDetails: json_.containsKey('genericDetails')
            ? GenericPlatformDetails.fromJson(json_['genericDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        physicalDetails: json_.containsKey('physicalDetails')
            ? PhysicalPlatformDetails.fromJson(json_['physicalDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        vmwareDetails: json_.containsKey('vmwareDetails')
            ? VmwarePlatformDetails.fromJson(
                json_['vmwareDetails'] as core.Map<core.String, core.dynamic>)
            : null,
      );