StatusUpdateProject.fromJson constructor
Constructs a StatusUpdateProject instance from a JSON map.
The json
parameter is a map containing the project data.
Implementation
StatusUpdateProject.fromJson(Map<String, dynamic> json)
: this.type = Convert.toStr(json['type'], ''),
this.id = Convert.toStr(json['id'], ''),
this.name = Convert.toStr(json['name'], ''),
this.symbol = Convert.toStrN(json['symbol']),
this.image = json.containsKey('image')
? ImageInfo.fromJson(json['image'])
: null;