ConnectionInfo.fromJson constructor

ConnectionInfo.fromJson(
  1. Map<String, Object?> json
)

Implementation

ConnectionInfo.fromJson(Map<String, Object?> json)
    : ip = ((v) => v != null ? v as String : null)(json['ip']),
      lastSeen = ((v) => v != null ? v as int : null)(json['last_seen']),
      userAgent = ((v) => v != null ? v as String : null)(json['user_agent']);