Map<String, dynamic>? getJSONObject() { final json = _json; if (type != AttributesType.OBJECT || json == null) { return null; } else { return Map<String, dynamic>.from(jsonDecode(json)); } }