attributesToMap static method
Implementation
static Map<String, dynamic>? attributesToMap(dynamic attributes) {
try {
if (attributes == null) {
return {"type": "NULL", "data": null};
}
final map = jsToMap(attributes);
return {"type": "OBJECT", "data": json.encode(map)};
} catch (e) {
return {"type": "NULL", "data": null};
}
}