SapDiscoveryComponent.fromJson constructor

SapDiscoveryComponent.fromJson(
  1. Map json_
)

Implementation

SapDiscoveryComponent.fromJson(core.Map json_)
    : this(
        applicationProperties: json_.containsKey('applicationProperties')
            ? SapDiscoveryComponentApplicationProperties.fromJson(
                json_['applicationProperties']
                    as core.Map<core.String, core.dynamic>)
            : null,
        databaseProperties: json_.containsKey('databaseProperties')
            ? SapDiscoveryComponentDatabaseProperties.fromJson(
                json_['databaseProperties']
                    as core.Map<core.String, core.dynamic>)
            : null,
        haHosts: json_.containsKey('haHosts')
            ? (json_['haHosts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        hostProject: json_.containsKey('hostProject')
            ? json_['hostProject'] as core.String
            : null,
        resources: json_.containsKey('resources')
            ? (json_['resources'] as core.List)
                .map((value) => SapDiscoveryResource.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sid: json_.containsKey('sid') ? json_['sid'] as core.String : null,
        topologyType: json_.containsKey('topologyType')
            ? json_['topologyType'] as core.String
            : null,
      );