Connections.fromJson constructor

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

Implementation

factory Connections.fromJson(Map<String, dynamic> json) {
  return Connections(
    connections: (json['connections'] as List?)
        ?.whereNotNull()
        .map((e) => Connection.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}