toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final chunk = this.chunk;
  final end = this.end;
  final start = this.start;
  return {
    if (chunk != null) 'chunk': chunk.map((v) => v.toJson()).toList(),
    if (end != null) 'end': end,
    if (start != null) 'start': start,
  };
}