Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HomeTeam {
- final int id, legacyId, name, countryId;
- final bool nationalTeam;
- final String logoPath;
- HomeTeam({this.id, this.legacyId, this.name, this.countryId, this.nationalTeam, this.logoPath});
- factory HomeTeam.fromJson(Map<String, dynamic> json){
- return HomeTeam(
- id: json['id'],
- legacyId: json['legacy_id'],
- name: json['name'],
- nationalTeam: json['national_team'],
- logoPath: json['logo_path']
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement