GatewayResponses.fromJson constructor

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

Implementation

factory GatewayResponses.fromJson(Map<String, dynamic> json) {
  return GatewayResponses(
    items: (json['item'] as List?)
        ?.whereNotNull()
        .map((e) => GatewayResponse.fromJson(e as Map<String, dynamic>))
        .toList(),
    position: json['position'] as String?,
  );
}