class LanguageModel { bool? isActive; String? slug; String? title; String? image; bool? isRtl; LanguageModel({this.isActive, this.slug, this.title, this.isRtl, this.image}); LanguageModel.fromJson(Map json) { isActive = json['isActive']; slug = json['slug']; title = json['title']; isRtl = json['is_rtl']; image = json['flag']; } Map toJson() { final Map data = {}; data['isActive'] = isActive; data['slug'] = slug; data['title'] = title; data['is_rtl'] = isRtl; data['flag'] = image; return data; } }