Map<String, dynamic> toJson() => { "length": length == null ? null : length, "offset": offset == null ? null : offset, };