toSnakeCase function
taskList → task_list: the record id prefix of a model, exactly as the
platform derives it (toSnakeCase in @flutterflow/schema ids.ts), so
apiURL is api_url. Already snake_case input comes back unchanged.
Implementation
String toSnakeCase(String name) => name
.replaceAllMapped(_caseBoundary, (match) => '${match[1]}_${match[2]}')
.toLowerCase();