ExitsResponse.fromJson constructor

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

Implementation

factory ExitsResponse.fromJson(Map<String, dynamic> json) {
  List<Exit>? exits =
      (json['exits'] as List?)?.map((item) => Exit.fromJson(item))?.toList();
  return ExitsResponse(exits: exits, pagination: json['pagination']);
}