Unassigned.fromJson constructor

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

Implementation

factory Unassigned.fromJson(Map<String, dynamic> json) {
  return Unassigned(
    id: json['id'],
    type: json['type'],
    location: json['location'] != null
        ? List<double>.from(json['location'].map((x) => x.toDouble()))
        : null,
    reason: json['reason'],
  );
}