/// id : 0
/// title : ""
/// type : 0
/// quantity : 0.0
/// createTime : ""

class SCGoldRecordRes {
  SCGoldRecordRes({
    String? id,
    String? title,
    num? type,
    num? quantity,
    int? createTime,
  }) {
    _id = id;
    _title = title;
    _type = type;
    _quantity = quantity;
    _createTime = createTime;
  }

  SCGoldRecordRes.fromJson(dynamic json) {
    _id = json['id'];
    _title = json['title'];
    _type = json['type'];
    _quantity = json['quantity'];
    _createTime = json['createTime'];
  }

  String? _id;
  String? _title;
  num? _type;
  num? _quantity;
  int? _createTime;

  SCGoldRecordRes copyWith({
    String? id,
    String? title,
    num? type,
    num? quantity,
    int? createTime,
  }) => SCGoldRecordRes(
    id: id ?? _id,
    title: title ?? _title,
    type: type ?? _type,
    quantity: quantity ?? _quantity,
    createTime: createTime ?? _createTime,
  );

  String? get id => _id;

  String? get title => _title;

  num? get type => _type;

  num? get quantity => _quantity;

  int? get createTime => _createTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['title'] = _title;
    map['type'] = _type;
    map['quantity'] = _quantity;
    map['createTime'] = _createTime;
    return map;
  }
}
