fromJson method

  1. @override
Location fromJson(
  1. List json
)

Implementation

@override
Location fromJson(List<dynamic> json) {
  return (long: json[0] as double, lat: json[1] as double);
}