factory InputRequest.fromMap(Map<String, Object?> value) { assert(value.containsKey(Keys.method)); return InputRequest._(value); }