class MatchEvent {
  String? sId;
  String? matchEventId;
  String? matchId;
  String? match;
  String? player;
  String? time;
  String? event;
  String? info;
  int? sort;
  bool? isHome;
  bool? isAway;
  String? createdAt;
  String? updatedAt;
  int? iV;

  MatchEvent(
      {this.sId,
        this.matchEventId,
        this.matchId,
        this.match,
        this.player,
        this.time,
        this.event,
        this.info,
        this.sort,
        this.isHome,
        this.isAway,
        this.createdAt,
        this.updatedAt,
        this.iV});

  MatchEvent.fromJson(Map<String, dynamic> json) {
    sId = json['_id'];
    matchEventId = json['matchEventId'];
    matchId = json['matchId'];
    match = json['match'];
    player = json['player'];
    time = json['time'];
    event = json['event'];
    info = json['info'];
    sort = json['sort'];
    isHome = json['isHome'];
    isAway = json['isAway'];
    createdAt = json['createdAt'];
    updatedAt = json['updatedAt'];
    iV = json['__v'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['_id'] = this.sId;
    data['matchEventId'] = this.matchEventId;
    data['matchId'] = this.matchId;
    data['match'] = this.match;
    data['player'] = this.player;
    data['time'] = this.time;
    data['event'] = this.event;
    data['info'] = this.info;
    data['sort'] = this.sort;
    data['isHome'] = this.isHome;
    data['isAway'] = this.isAway;
    data['createdAt'] = this.createdAt;
    data['updatedAt'] = this.updatedAt;
    data['__v'] = this.iV;
    return data;
  }
}
