mirrored_repositories/CMP-FIFA-World-Cup-Booking/lib
class TeamModel {
  int? id;
  String? name;
  String? createdAt;
  String? updatedAt;

  TeamModel({this.id, this.name, this.createdAt, this.updatedAt});

  TeamModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    createdAt = json['created_at'];
    updatedAt = json['updated_at'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['name'] = name;
    data['created_at'] = createdAt;
    data['updated_at'] = updatedAt;
    return data;
  }
}