core.Map<core.String, core.dynamic> toJson() => { if (invoices != null) 'invoices': invoices!, if (nextPageToken != null) 'nextPageToken': nextPageToken!, };