/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2023-10-30 17:13:10
 * @LastEditTime : 2023-10-30 17:27:10
 * @Description  : Do not edit
 */
import 'package:wisdom_cli/wisdom_cli.dart';

class PrefeeChargeItemModel extends WPickerEntity {
  String? identification;
  String? feeName;
  num? price;
  String? unit;
  num? prePayFee;
  dynamic receivableFee;
  String? type;
  bool? prepay;
  dynamic receivableFeeDB;
  bool? arrearsCanPay;
  String? tempChargeOnlinePayType;

  PrefeeChargeItemModel({
    this.identification,
    this.feeName,
    this.price,
    this.unit,
    this.prePayFee,
    this.receivableFee,
    this.type,
    this.prepay,
    this.receivableFeeDB,
    this.arrearsCanPay,
    this.tempChargeOnlinePayType,
  });

  PrefeeChargeItemModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    identification = map['identification'];
    feeName = map['feeName'];
    price = map['price'];
    unit = map['unit'];
    prePayFee = map['prePayFee'];
    receivableFee = map['receivableFee'];
    type = map['type'];
    prepay = map['prepay'];
    receivableFeeDB = map['receivableFeeDB'];
    arrearsCanPay = map['arrearsCanPay'];
    tempChargeOnlinePayType = map['tempChargeOnlinePayType'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['identification'] = this.identification;
    json['feeName'] = this.feeName;
    json['price'] = this.price;
    json['unit'] = this.unit;
    json['prePayFee'] = this.prePayFee;
    json['receivableFee'] = this.receivableFee;
    json['type'] = this.type;
    json['prepay'] = this.prepay;
    json['receivableFeeDB'] = this.receivableFeeDB;
    json['arrearsCanPay'] = this.arrearsCanPay;
    json['tempChargeOnlinePayType'] = this.tempChargeOnlinePayType;

    return json;
  }

  @override
  bool get selectDisabled => false;

  @override
  String get selectName => this.feeName ?? '';

  @override
  Object get selectUnique => this.identification ?? '';
}
