SapDiscoveryResourceInstanceProperties.fromJson constructor

SapDiscoveryResourceInstanceProperties.fromJson(
  1. Map json_
)

Implementation

SapDiscoveryResourceInstanceProperties.fromJson(core.Map json_)
    : this(
        appInstances: json_.containsKey('appInstances')
            ? (json_['appInstances'] as core.List)
                .map((value) =>
                    SapDiscoveryResourceInstancePropertiesAppInstance
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        clusterInstances: json_.containsKey('clusterInstances')
            ? (json_['clusterInstances'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        instanceNumber: json_.containsKey('instanceNumber')
            ? json_['instanceNumber'] as core.String
            : null,
        instanceRole: json_.containsKey('instanceRole')
            ? json_['instanceRole'] as core.String
            : null,
        virtualHostname: json_.containsKey('virtualHostname')
            ? json_['virtualHostname'] as core.String
            : null,
      );