/*
 * @Author: XianKaiQun
 * @Date: 2020-10-16 16:13:46
 * @LastEditors: XianKaiQun
 * @LastEditTime: 2020-10-16 16:30:22
 * @Description: 
 */
///抄表记录

class RecordModel {
  String? id;
  String? meterId;
  num? transcribeAmount;
  dynamic currentAmount;
  num? actualAmount;
  num? chargeAmount;
  num? adjustAmount;
  dynamic certificate;
  bool? changeMeter;
  dynamic newInitalAmount;
  dynamic multiple;
  dynamic oldFinallyAmount;
  String? transcribeDate;
  String? readerDate;
  String? reader;
  String? readerName;
  dynamic createdBy;
  dynamic createdAt;
  dynamic updatedBy;
  String? updatedAt;
  dynamic deleted;
  dynamic remark;
  dynamic meterAddr;
  dynamic lastTranscribeAmount;
  dynamic meterName;
  String? readerTime;

  RecordModel({
    this.id,
    this.meterId,
    this.transcribeAmount,
    this.currentAmount,
    this.actualAmount,
    this.chargeAmount,
    this.adjustAmount,
    this.certificate,
    this.changeMeter,
    this.newInitalAmount,
    this.multiple,
    this.oldFinallyAmount,
    this.transcribeDate,
    this.readerDate,
    this.reader,
    this.readerName,
    this.createdBy,
    this.createdAt,
    this.updatedBy,
    this.updatedAt,
    this.deleted,
    this.remark,
    this.meterAddr,
    this.lastTranscribeAmount,
    this.meterName,
    this.readerTime,
  });

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

    id = map['id'];
    meterId = map['meterId'];
    transcribeAmount = map['transcribeAmount'];
    currentAmount = map['currentAmount'];
    actualAmount = map['actualAmount'];
    chargeAmount = map['chargeAmount'];
    adjustAmount = map['adjustAmount'];
    certificate = map['certificate'];
    changeMeter = map['changeMeter'];
    newInitalAmount = map['newInitalAmount'];
    multiple = map['multiple'];
    oldFinallyAmount = map['oldFinallyAmount'];
    transcribeDate = map['transcribeDate'];
    readerDate = map['readerDate'];
    reader = map['reader'];
    readerName = map['readerName'];
    createdBy = map['createdBy'];
    createdAt = map['createdAt'];
    updatedBy = map['updatedBy'];
    updatedAt = map['updatedAt'];
    deleted = map['deleted'];
    remark = map['remark'];
    meterAddr = map['meterAddr'];
    lastTranscribeAmount = map['lastTranscribeAmount'];
    meterName = map['meterName'];
    readerTime = map['readerTime'];
  }

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

    json['id'] = this.id;
    json['meterId'] = this.meterId;
    json['transcribeAmount'] = this.transcribeAmount;
    json['currentAmount'] = this.currentAmount;
    json['actualAmount'] = this.actualAmount;
    json['chargeAmount'] = this.chargeAmount;
    json['adjustAmount'] = this.adjustAmount;
    json['certificate'] = this.certificate;
    json['changeMeter'] = this.changeMeter;
    json['newInitalAmount'] = this.newInitalAmount;
    json['multiple'] = this.multiple;
    json['oldFinallyAmount'] = this.oldFinallyAmount;
    json['transcribeDate'] = this.transcribeDate;
    json['readerDate'] = this.readerDate;
    json['reader'] = this.reader;
    json['readerName'] = this.readerName;
    json['createdBy'] = this.createdBy;
    json['createdAt'] = this.createdAt;
    json['updatedBy'] = this.updatedBy;
    json['updatedAt'] = this.updatedAt;
    json['deleted'] = this.deleted;
    json['remark'] = this.remark;
    json['meterAddr'] = this.meterAddr;
    json['lastTranscribeAmount'] = this.lastTranscribeAmount;
    json['meterName'] = this.meterName;
    json['readerTime'] = this.readerTime;

    return json;
  }
}
