toJson method

String toJson()

Implementation

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