Consent.fromJson constructor
Consent.fromJson(
- Map json_
Implementation
Consent.fromJson(core.Map json_)
: this(
consentArtifact: json_.containsKey('consentArtifact')
? json_['consentArtifact'] as core.String
: null,
expireTime: json_.containsKey('expireTime')
? json_['expireTime'] as core.String
: null,
metadata: json_.containsKey('metadata')
? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
policies: json_.containsKey('policies')
? (json_['policies'] as core.List)
.map((value) => GoogleCloudHealthcareV1ConsentPolicy.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
revisionCreateTime: json_.containsKey('revisionCreateTime')
? json_['revisionCreateTime'] as core.String
: null,
revisionId: json_.containsKey('revisionId')
? json_['revisionId'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
ttl: json_.containsKey('ttl') ? json_['ttl'] as core.String : null,
userId: json_.containsKey('userId')
? json_['userId'] as core.String
: null,
);