toJson method
Implementation
@override
String? toJson(TextInputAction? object) {
if (object == null) return null;
switch (object) {
case TextInputAction.continueAction:
return 'continueAction';
case TextInputAction.done:
return 'done';
case TextInputAction.emergencyCall:
return 'emergencyCall';
case TextInputAction.go:
return 'go';
case TextInputAction.join:
return 'join';
case TextInputAction.newline:
return 'newline';
case TextInputAction.next:
return 'next';
case TextInputAction.none:
return 'none';
case TextInputAction.previous:
return 'previous';
case TextInputAction.route:
return 'route';
case TextInputAction.search:
return 'search';
case TextInputAction.send:
return 'send';
case TextInputAction.unspecified:
return 'unspecified';
}
}