GmailMessageInfo.fromJson constructor
GmailMessageInfo.fromJson(
- Map _json
Implementation
GmailMessageInfo.fromJson(core.Map _json)
: this(
attachmentsSha256Hash: _json.containsKey('attachmentsSha256Hash')
? (_json['attachmentsSha256Hash'] as core.List)
.map<core.String>((value) => value as core.String)
.toList()
: null,
date: _json.containsKey('date') ? _json['date'] as core.String : null,
md5HashMessageBody: _json.containsKey('md5HashMessageBody')
? _json['md5HashMessageBody'] as core.String
: null,
md5HashSubject: _json.containsKey('md5HashSubject')
? _json['md5HashSubject'] as core.String
: null,
messageBodySnippet: _json.containsKey('messageBodySnippet')
? _json['messageBodySnippet'] as core.String
: null,
messageId: _json.containsKey('messageId')
? _json['messageId'] as core.String
: null,
recipient: _json.containsKey('recipient')
? _json['recipient'] as core.String
: null,
subjectText: _json.containsKey('subjectText')
? _json['subjectText'] as core.String
: null,
);