extractSchemaFromEventParams function

List<Map<String, dynamic>> extractSchemaFromEventParams({
  1. required Map<String, dynamic> eventParams,
})

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;
}