AriaDetail constructor
const
AriaDetail({
- @JsonKey(name: 'bitfield') @Default('') String bitfield,
- @JsonKey(name: 'completedLength') @Default('') String completedLength,
- @JsonKey(name: 'connections') @Default('') String connections,
- @JsonKey(name: 'dir') @Default('') String dir,
- @JsonKey(name: 'downloadSpeed') @Default('') String downloadSpeed,
- @JsonKey(name: 'files') @Default([]) List<
Files> files, - @JsonKey(name: 'gid') @Default('') String gid,
- @JsonKey(name: 'numPieces') @Default('') String numPieces,
- @JsonKey(name: 'pieceLength') @Default('') String pieceLength,
- @JsonKey(name: 'status') @Default('') String status,
- @JsonKey(name: 'totalLength') @Default('') String totalLength,
- @JsonKey(name: 'uploadLength') @Default('') String uploadLength,
- @JsonKey(name: 'uploadSpeed') @Default('') String uploadSpeed,
Implementation
const factory AriaDetail({
@JsonKey(name: 'bitfield') @Default('') String bitfield,
@JsonKey(name: 'completedLength') @Default('') String completedLength,
@JsonKey(name: 'connections') @Default('') String connections,
@JsonKey(name: 'dir') @Default('') String dir,
@JsonKey(name: 'downloadSpeed') @Default('') String downloadSpeed,
@JsonKey(name: 'files') @Default([]) List<Files> files,
@JsonKey(name: 'gid') @Default('') String gid,
@JsonKey(name: 'numPieces') @Default('') String numPieces,
@JsonKey(name: 'pieceLength') @Default('') String pieceLength,
@JsonKey(name: 'status') @Default('') String status,
@JsonKey(name: 'totalLength') @Default('') String totalLength,
@JsonKey(name: 'uploadLength') @Default('') String uploadLength,
@JsonKey(name: 'uploadSpeed') @Default('') String uploadSpeed,
}) = _AriaDetail;