toJson method
Implementation
@override
String? toJson(TextAlignVertical? object) {
if (object == null) return null;
switch (object) {
case TextAlignVertical.bottom:
return 'bottom';
case TextAlignVertical.center:
return 'center';
case TextAlignVertical.top:
return 'top';
}
throw 'Json_Unsuported_Value';
}