toJson method
- {bool includePhoto: false}
Implementation
Map<String, dynamic> toJson({bool includePhoto = false}) {
Map<String, dynamic> json = _$ContactToJson(this);
// photo requires special handling since it's ignored by json serialization
if (includePhoto) json['photo'] = photo;
return json;
}