Protect JsonKeys from incorrect symbols, keywords, etc.
String? protectJsonKey(String? name) => name?.replaceAll(r'$', r'\$');