Contact.fromJson constructor
- Map json
Implementation
factory Contact.fromJson(Map json) {
var contact = _$ContactFromJson(json);
// photo requires special handling since it's ignored by json serialization
contact.photo = json['photo'] as Uint8List;
return contact;
}