/// id : 0
/// sysOrigin : ""
/// productPackage : ""
/// unitPrice : 0.0
/// obtainCandy : 0.0
/// rewardCandy : 0.0

class SCProductConfigRes {
  SCProductConfigRes({
      String? id,
      String? sysOrigin,
      String? productPackage,
      num? unitPrice,
      num? obtainCandy,
      num? rewardCandy,}){
    _id = id;
    _sysOrigin = sysOrigin;
    _productPackage = productPackage;
    _unitPrice = unitPrice;
    _obtainCandy = obtainCandy;
    _rewardCandy = rewardCandy;
}

  SCProductConfigRes.fromJson(dynamic json) {
    _id = json['id'];
    _sysOrigin = json['sysOrigin'];
    _productPackage = json['productPackage'];
    _unitPrice = json['unitPrice'];
    _obtainCandy = json['obtainCandy'];
    _rewardCandy = json['rewardCandy'];
  }
  String? _id;
  String? _sysOrigin;
  String? _productPackage;
  num? _unitPrice;
  num? _obtainCandy;
  num? _rewardCandy;
SCProductConfigRes copyWith({  String? id,
  String? sysOrigin,
  String? productPackage,
  num? unitPrice,
  num? obtainCandy,
  num? rewardCandy,
}) => SCProductConfigRes(  id: id ?? _id,
  sysOrigin: sysOrigin ?? _sysOrigin,
  productPackage: productPackage ?? _productPackage,
  unitPrice: unitPrice ?? _unitPrice,
  obtainCandy: obtainCandy ?? _obtainCandy,
  rewardCandy: rewardCandy ?? _rewardCandy,
);
  String? get id => _id;
  String? get sysOrigin => _sysOrigin;
  String? get productPackage => _productPackage;
  num? get unitPrice => _unitPrice;
  num? get obtainCandy => _obtainCandy;
  num? get rewardCandy => _rewardCandy;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['sysOrigin'] = _sysOrigin;
    map['productPackage'] = _productPackage;
    map['unitPrice'] = _unitPrice;
    map['obtainCandy'] = _obtainCandy;
    map['rewardCandy'] = _rewardCandy;
    return map;
  }

}