import 'dart:convert'; /// ้ข‘้“ๅˆ—่กจ response class ChannelResponse { String code; String title; ChannelResponse({ required this.code, required this.title, }); factory ChannelResponse.fromRawJson(String str) => ChannelResponse.fromJson(json.decode(str)); String toRawJson() => json.encode(toJson()); factory ChannelResponse.fromJson(Map json) => ChannelResponse( code: json["code"], title: json["title"], ); Map toJson() => { "code": code, "title": title, }; }