AriaDetail constructor

const AriaDetail({
  1. @JsonKey(name: 'bitfield') @Default('') String bitfield,
  2. @JsonKey(name: 'completedLength') @Default('') String completedLength,
  3. @JsonKey(name: 'connections') @Default('') String connections,
  4. @JsonKey(name: 'dir') @Default('') String dir,
  5. @JsonKey(name: 'downloadSpeed') @Default('') String downloadSpeed,
  6. @JsonKey(name: 'files') @Default([]) List<Files> files,
  7. @JsonKey(name: 'gid') @Default('') String gid,
  8. @JsonKey(name: 'numPieces') @Default('') String numPieces,
  9. @JsonKey(name: 'pieceLength') @Default('') String pieceLength,
  10. @JsonKey(name: 'status') @Default('') String status,
  11. @JsonKey(name: 'totalLength') @Default('') String totalLength,
  12. @JsonKey(name: 'uploadLength') @Default('') String uploadLength,
  13. @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;