extractSchemaFromEventParams function
Implementation
List<Map<String, dynamic>> extractSchemaFromEventParams(
{required Map<String, dynamic> eventParams}) {
List<Map<String, dynamic>> children = [];
eventParams.forEach((key, value) {
children.add({
"propertyName": key,
}..addAll(extractTypeJson(value)));
});
return children;
}