Input$GmailListMessageInput.fromJson constructor

Input$GmailListMessageInput.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory Input$GmailListMessageInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('maxResults')) {
    final l$maxResults = data['maxResults'];
    result$data['maxResults'] = (l$maxResults as int?);
  }
  if (data.containsKey('pageToken')) {
    final l$pageToken = data['pageToken'];
    result$data['pageToken'] = (l$pageToken as String?);
  }
  if (data.containsKey('q')) {
    final l$q = data['q'];
    result$data['q'] = (l$q as String?);
  }
  if (data.containsKey('labelIds')) {
    final l$labelIds = data['labelIds'];
    result$data['labelIds'] =
        (l$labelIds as List<dynamic>?)?.map((e) => (e as String)).toList();
  }
  if (data.containsKey('includeSpamTrash')) {
    final l$includeSpamTrash = data['includeSpamTrash'];
    result$data['includeSpamTrash'] = (l$includeSpamTrash as bool?);
  }
  return Input$GmailListMessageInput._(result$data);
}