ContactInfo.fromJson constructor
Implementation
factory ContactInfo.fromJson(Map<String, dynamic> json) {
return ContactInfo(
json['id'],
DateTime.parse(json['time']),
json['accepted'],
json['count'],
resource: json['resource'],
text: json['text'],
watermark: json.containsKey('watermark')
? DateTime.parse(json['watermark'])
: null,
visited:
json.containsKey('visited') ? DateTime.parse(json['visited']) : null,
forgotten: json['forgotten'],
);
}