/// taskType : 0
/// taskName : ""
/// taskDesc : ""
/// jumpPage : ""
/// conditionType : ""
/// sortOrder : 0
/// taskId : 0
/// taskStatus : 0
/// cover : ""
/// taskIcon : ""
/// isRewardCollected : 0
/// quantity : 0

class SCTaskListRes {
  SCTaskListRes({
    num? taskType,
    String? taskName,
    String? taskDesc,
    String? jumpPage,
    String? conditionType,
    num? sortOrder,
    num? taskId,
    num? taskStatus,
    String? cover,
    String? taskIcon,
    String? conditionValue,
    String? completedValue,
    num? isRewardCollected,
    num? targetValue,
    num? quantity,
  }) {
    _taskType = taskType;
    _taskName = taskName;
    _taskDesc = taskDesc;
    _jumpPage = jumpPage;
    _conditionType = conditionType;
    _sortOrder = sortOrder;
    _taskId = taskId;
    _taskStatus = taskStatus;
    _cover = cover;
    _taskIcon = taskIcon;
    _conditionValue = conditionValue;
    _completedValue = completedValue;
    _isRewardCollected = isRewardCollected;
    _quantity = quantity;
    _targetValue = targetValue;
  }

  SCTaskListRes.fromJson(dynamic json) {
    _taskType = json['taskType'];
    _taskName = json['taskName'];
    _taskDesc = json['taskDesc'];
    _jumpPage = json['jumpPage'];
    _conditionType = json['conditionType'];
    _sortOrder = json['sortOrder'];
    _taskId = json['taskId'];
    _taskStatus = json['taskStatus'];
    _cover = json['cover'];
    _taskIcon = json['taskIcon'];
    _conditionValue = json['conditionValue'];
    _completedValue = json['completedValue'];
    _isRewardCollected = json['isRewardCollected'];
    _quantity = json['quantity'];
    _targetValue = json['targetValue'];
  }

  num? _taskType;
  String? _taskName;
  String? _taskDesc;
  String? _jumpPage;
  String? _conditionType;
  num? _sortOrder;
  num? _taskId;
  num? _taskStatus;
  String? _cover;
  String? _taskIcon;
  String? _conditionValue;
  String? _completedValue;
  num? _isRewardCollected;
  num? _quantity;
  num? _targetValue;

  num? get taskType => _taskType;

  String? get taskName => _taskName;

  String? get taskDesc => _taskDesc;

  String? get jumpPage => _jumpPage;

  String? get conditionType => _conditionType;

  num? get sortOrder => _sortOrder;

  num? get taskId => _taskId;

  num? get taskStatus => _taskStatus;

  String? get cover => _cover;

  String? get taskIcon => _taskIcon;

  String? get conditionValue => _conditionValue;

  String? get completedValue => _completedValue;

  num? get isRewardCollected => _isRewardCollected;

  num? get quantity => _quantity;
  num? get targetValue => _targetValue;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['taskType'] = _taskType;
    map['taskName'] = _taskName;
    map['taskDesc'] = _taskDesc;
    map['jumpPage'] = _jumpPage;
    map['conditionType'] = _conditionType;
    map['sortOrder'] = _sortOrder;
    map['taskId'] = _taskId;
    map['taskStatus'] = _taskStatus;
    map['cover'] = _cover;
    map['taskIcon'] = _taskIcon;
    map['conditionValue'] = _conditionValue;
    map['completedValue'] = _completedValue;
    map['isRewardCollected'] = _isRewardCollected;
    map['quantity'] = _quantity;
    map['targetValue'] = _targetValue;
    return map;
  }
}
