/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-01-19 16:44:35
 * @LastEditTime : 2023-02-07 09:32:56
 * @Description  : Do not edit
 */
class IntelligentDetailListModel {
  String? id;
  String? meterId;
  String? action;
  String? createAt;
  String? createBy;
  num? changeMargin;
  num? currentMargin;
  num? operationMode;
  num? currentAmount;

  IntelligentDetailListModel({
    this.id,
    this.meterId,
    this.action,
    this.createAt,
    this.createBy,
    this.changeMargin,
    this.currentMargin,
    this.operationMode,
    this.currentAmount,
  });

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

    id = map['id'];
    meterId = map['meterId'];
    action = map['action'];
    createAt = map['createAt'];
    createBy = map['createBy'];
    changeMargin = map['changeMargin'];
    currentMargin = map['currentMargin'];
    currentAmount = map['currentAmount'];
    operationMode = map['operationMode'];
  }

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

    json['id'] = this.id;
    json['meterId'] = this.meterId;
    json['action'] = this.action;
    json['createAt'] = this.createAt;
    json['createBy'] = this.createBy;
    json['changeMargin'] = this.changeMargin;
    json['currentMargin'] = this.currentMargin;
    json['operationMode'] = this.operationMode;
    json['currentAmount'] = this.currentAmount;

    return json;
  }
}
