GetConnectivityInfoResponse.fromJson constructor

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

Implementation

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