diff --git a/lib/core/models/dev.dart b/lib/core/models/dev.dart index 46ac644..0ba4758 100644 --- a/lib/core/models/dev.dart +++ b/lib/core/models/dev.dart @@ -1,15 +1,24 @@ class Dev { String name; List roles; + List skills; String about; String username; Socials socials; - Dev({this.name, this.roles, this.about, this.username, this.socials}); + Dev({ + this.name, + this.roles, + this.about, + this.username, + this.socials, + this.skills, + }); Dev.fromJson(Map json) { name = json['name']; roles = json['roles'].cast(); + skills = json['skills']?.cast(); about = json['about']; username = json['username']; socials = @@ -20,6 +29,7 @@ class Dev { final Map data = new Map(); data['name'] = this.name; data['roles'] = this.roles; + data['skills'] = this.skills; data['about'] = this.about; data['username'] = this.username; if (this.socials != null) {