convertFromJson method
Converts a property name from JSON naming convention to camelCase.
Uses the configured jsonNamingConvention or auto-detects from the JSON structure.
@param jsonPropertyName The property name in JSON format.
@param json The JSON object used for auto-detection if needed.
@returns The property name converted to camelCase.
Implementation
String convertFromJson(String jsonPropertyName, Map<dynamic, dynamic> json) {
final convention = jsonNamingConvention ?? detectNamingConvention(json);
if (convention == null) return jsonPropertyName;
return convention.toCamelCase(jsonPropertyName);
}