Service.fromJson constructor
Service.fromJson(
- Map json_
Implementation
Service.fromJson(core.Map json_)
: this(
attributes: json_.containsKey('attributes')
? Attributes.fromJson(
json_['attributes'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
discoveredService: json_.containsKey('discoveredService')
? json_['discoveredService'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
serviceProperties: json_.containsKey('serviceProperties')
? ServiceProperties.fromJson(json_['serviceProperties']
as core.Map<core.String, core.dynamic>)
: null,
serviceReference: json_.containsKey('serviceReference')
? ServiceReference.fromJson(json_['serviceReference']
as core.Map<core.String, core.dynamic>)
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);