class StatModel {
  String? id;
  String? name;
  num? finishedCount;
  num? todoCount;
  num? finishedRate;
  num? cost;
  num? finishedAddCount;
  num? todoAddCount;
  num? finishedChangeRate;

  StatModel({
    this.id,
    this.name,
    this.finishedCount,
    this.todoCount,
    this.finishedRate,
    this.cost,
    this.finishedAddCount,
    this.todoAddCount,
    this.finishedChangeRate,
  });

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

    id = map['id'];
    name = map['name'];
    finishedCount = map['finishedCount'];
    todoCount = map['todoCount'];
    finishedRate = map['finishedRate'];
    cost = map['cost'];
    finishedAddCount = map['finishedAddCount'];
    todoAddCount = map['todoAddCount'];
    finishedChangeRate = map['finishedChangeRate'];
  }

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

    json['id'] = this.id;
    json['name'] = this.name;
    json['finishedCount'] = this.finishedCount;
    json['todoCount'] = this.todoCount;
    json['finishedRate'] = this.finishedRate;
    json['cost'] = this.cost;
    json['finishedAddCount'] = this.finishedAddCount;
    json['todoAddCount'] = this.todoAddCount;
    json['finishedChangeRate'] = this.finishedChangeRate;

    return json;
  }
}
