Resource.fromJson constructor
Resource.fromJson(
- Map json_
Implementation
Resource.fromJson(core.Map json_)
: this(
awsMetadata: json_.containsKey('awsMetadata')
? AwsMetadata.fromJson(
json_['awsMetadata'] as core.Map<core.String, core.dynamic>)
: null,
cloudProvider: json_.containsKey('cloudProvider')
? json_['cloudProvider'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
folders: json_.containsKey('folders')
? (json_['folders'] as core.List)
.map((value) => Folder.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
location: json_.containsKey('location')
? json_['location'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
organization: json_.containsKey('organization')
? json_['organization'] as core.String
: null,
parentDisplayName: json_.containsKey('parentDisplayName')
? json_['parentDisplayName'] as core.String
: null,
parentName: json_.containsKey('parentName')
? json_['parentName'] as core.String
: null,
projectDisplayName: json_.containsKey('projectDisplayName')
? json_['projectDisplayName'] as core.String
: null,
projectName: json_.containsKey('projectName')
? json_['projectName'] as core.String
: null,
resourcePath: json_.containsKey('resourcePath')
? ResourcePath.fromJson(
json_['resourcePath'] as core.Map<core.String, core.dynamic>)
: null,
resourcePathString: json_.containsKey('resourcePathString')
? json_['resourcePathString'] as core.String
: null,
service: json_.containsKey('service')
? json_['service'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);