toJson method
Implementation
String toJson() {
switch (this) {
case InputMethod.unknown:
return 'unknown';
case InputMethod.manual:
return 'manual';
case InputMethod.device:
return 'device';
}
}
String toJson() {
switch (this) {
case InputMethod.unknown:
return 'unknown';
case InputMethod.manual:
return 'manual';
case InputMethod.device:
return 'device';
}
}