SapDiscoveryResource.fromJson constructor

SapDiscoveryResource.fromJson(
  1. Map json_
)

Implementation

SapDiscoveryResource.fromJson(core.Map json_)
    : this(
        instanceProperties: json_.containsKey('instanceProperties')
            ? SapDiscoveryResourceInstanceProperties.fromJson(
                json_['instanceProperties']
                    as core.Map<core.String, core.dynamic>)
            : null,
        relatedResources: json_.containsKey('relatedResources')
            ? (json_['relatedResources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        resourceKind: json_.containsKey('resourceKind')
            ? json_['resourceKind'] as core.String
            : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
        resourceUri: json_.containsKey('resourceUri')
            ? json_['resourceUri'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );