EndpointsResponse.fromJson constructor

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

Implementation

factory EndpointsResponse.fromJson(Map<String, dynamic> json) {
  return EndpointsResponse(
    item: (json['Item'] as List)
        .whereNotNull()
        .map((e) => EndpointResponse.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}