factory TvState.fromJson(Map<String, dynamic> json) { return TvState(inputType: TvInputTypeExt.fromString(json['input'])); }