toConverter method

ParameterConverter<KeyArgs> toConverter()

Implementation

ParameterConverter<KeyArgs> toConverter() {
  return (params) {
    params ??= <String, dynamic>{};
    if (params is KeyArgs) return params;
    return KeyArgs.fromArgs(this, params as Map<String, dynamic>);
  };
}