Message.fromJson constructor
Message.fromJson(
- Map json_
Implementation
Message.fromJson(core.Map json_)
: this(
historyId: json_.containsKey('historyId')
? json_['historyId'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
internalDate: json_.containsKey('internalDate')
? json_['internalDate'] as core.String
: null,
labelIds: json_.containsKey('labelIds')
? (json_['labelIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
payload: json_.containsKey('payload')
? MessagePart.fromJson(
json_['payload'] as core.Map<core.String, core.dynamic>)
: null,
raw: json_.containsKey('raw') ? json_['raw'] as core.String : null,
sizeEstimate: json_.containsKey('sizeEstimate')
? json_['sizeEstimate'] as core.int
: null,
snippet: json_.containsKey('snippet')
? json_['snippet'] as core.String
: null,
threadId: json_.containsKey('threadId')
? json_['threadId'] as core.String
: null,
);