Map<String, dynamic> toJson() => { "connectionType" : connectionType, "internetStatus" : internetStatus, "error" : error };