VmwareVsphereConfig.fromJson constructor

VmwareVsphereConfig.fromJson(
  1. Map json_
)

Implementation

VmwareVsphereConfig.fromJson(core.Map json_)
    : this(
        datastore: json_.containsKey('datastore')
            ? json_['datastore'] as core.String
            : null,
        hostGroups: json_.containsKey('hostGroups')
            ? (json_['hostGroups'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.List)
                .map((value) => VmwareVsphereTag.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );