From e51b269a53027af604ddc169664a3651547a2dc8 Mon Sep 17 00:00:00 2001 From: gerald Date: Wed, 17 Feb 2021 18:19:55 +0800 Subject: [PATCH] added 'skills' property to the Dev model --- lib/core/models/dev.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) {