SearchResultItem.fromJson constructor

SearchResultItem.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SearchResultItem.fromJson(Map<String, dynamic> json) {
  return SearchResultItem(
    id: "${json['id']}",
    service_id: "${json['service_id']}",
    name: "${json['name']}",
    department: "${json['department']}",
    office: "${json['office']}",
    service_sector: "${json['service_sector']}",
    recipient: "${json['recipient']}",
    source: "${json['source']}",
  );
}