SuggestionProto.fromJson constructor
SuggestionProto.fromJson(
- Map json_
Implementation
SuggestionProto.fromJson(core.Map json_)
: this(
helpUrl: json_.containsKey('helpUrl')
? json_['helpUrl'] as core.String
: null,
longMessage: json_.containsKey('longMessage')
? SafeHtmlProto.fromJson(
json_['longMessage'] as core.Map<core.String, core.dynamic>)
: null,
priority: json_.containsKey('priority')
? json_['priority'] as core.String
: null,
pseudoResourceId: json_.containsKey('pseudoResourceId')
? json_['pseudoResourceId'] as core.String
: null,
region: json_.containsKey('region')
? RegionProto.fromJson(
json_['region'] as core.Map<core.String, core.dynamic>)
: null,
resourceName: json_.containsKey('resourceName')
? json_['resourceName'] as core.String
: null,
screenId: json_.containsKey('screenId')
? json_['screenId'] as core.String
: null,
secondaryPriority: json_.containsKey('secondaryPriority')
? (json_['secondaryPriority'] as core.num).toDouble()
: null,
shortMessage: json_.containsKey('shortMessage')
? SafeHtmlProto.fromJson(
json_['shortMessage'] as core.Map<core.String, core.dynamic>)
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
);