Map<String, dynamic> toJson() { final Map<String, dynamic> data = <String, dynamic>{}; data['type'] = type; data['value'] = value; data['key'] = key; data['boolValue'] = boolValue; return data; }