Input$GmailImportMessageInput.fromJson constructor
Input$GmailImportMessageInput.fromJson(
- Map<String, dynamic> data
)
Implementation
factory Input$GmailImportMessageInput.fromJson(Map<String, dynamic> data) {
final result$data = <String, dynamic>{};
if (data.containsKey('internalDateSource')) {
final l$internalDateSource = data['internalDateSource'];
result$data['internalDateSource'] = l$internalDateSource == null
? null
: fromJson$Enum$InternalDateSourceEnum(
(l$internalDateSource as String));
}
if (data.containsKey('deleted')) {
final l$deleted = data['deleted'];
result$data['deleted'] = (l$deleted as bool?);
}
if (data.containsKey('neverMarkSpam')) {
final l$neverMarkSpam = data['neverMarkSpam'];
result$data['neverMarkSpam'] = (l$neverMarkSpam as bool?);
}
if (data.containsKey('processForCalendar')) {
final l$processForCalendar = data['processForCalendar'];
result$data['processForCalendar'] = (l$processForCalendar as bool?);
}
return Input$GmailImportMessageInput._(result$data);
}