NotesServicePaginationResponse constructor

NotesServicePaginationResponse({
  1. Int64? count,
  2. Int64? offset,
  3. Int64? total,
  4. Iterable<Note>? payload,
})

Implementation

factory NotesServicePaginationResponse({
  $fixnum.Int64? count,
  $fixnum.Int64? offset,
  $fixnum.Int64? total,
  $core.Iterable<Note>? payload,
}) {
  final result = create();
  if (count != null) result.count = count;
  if (offset != null) result.offset = offset;
  if (total != null) result.total = total;
  if (payload != null) result.payload.addAll(payload);
  return result;
}