fromJson method
Implementation
@override
TextCapitalization? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'characters':
return TextCapitalization.characters;
case 'none':
return TextCapitalization.none;
case 'sentences':
return TextCapitalization.sentences;
case 'words':
return TextCapitalization.words;
}
throw 'Unsuported_Json_Value';
}