ListLocationsResponse.fromJson constructor

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

Implementation

factory ListLocationsResponse.fromJson(Map<String, dynamic> json) {
  return ListLocationsResponse(
    locations: (json['Locations'] as List?)
        ?.whereNotNull()
        .map((e) => LocationListEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}