LocationPiece.fromJson constructor

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

Implementation

LocationPiece.fromJson(Map<String, dynamic> json) {
  longName = json['long_name'];
  shortName = json['short_name'];
  types = json['types'].cast<String>();
}