ArabSettingsModel

mail@pastecode.io avatar
unknown
dart
2 years ago
17 kB
0
Indexable
Never
class ArabSettingsModel {
  String? customMessage;
  String? customCode;
  ETags? eTags;
  List<SettingsScreens>? settingsScreens;
  Conditions? conditions;
  Terms? terms;
  List<About>? about;
  List<Mark1>? mark1;
  List<Mark2>? mark2;
  ContactPhones? contactPhones;
  List<Contacts>? contacts;
  TokenData? tokenData;

  ArabSettingsModel(
      {this.customMessage,
      this.customCode,
      this.eTags,
      this.settingsScreens,
      this.conditions,
      this.terms,
      this.about,
      this.mark1,
      this.mark2,
      this.contactPhones,
      this.contacts,
      this.tokenData});

  ArabSettingsModel.fromJson(Map<String, dynamic> json) {
    customMessage = json['custom_message'];
    customCode = json['custom_code'];
    eTags = json['e_tags'] != null ? new ETags.fromJson(json['e_tags']) : null;
    if (json['settings_screens'] != null) {
      settingsScreens = <SettingsScreens>[];
      json['settings_screens'].forEach((v) {
        settingsScreens!.add(new SettingsScreens.fromJson(v));
      });
    }
    conditions = json['conditions'] != null
        ? new Conditions.fromJson(json['conditions'])
        : null;
    terms = json['terms'] != null ? new Terms.fromJson(json['terms']) : null;
    if (json['about'] != null) {
      about = <About>[];
      json['about'].forEach((v) {
        about!.add(new About.fromJson(v));
      });
    }
    if (json['mark_1'] != null) {
      mark1 = <Mark1>[];
      json['mark_1'].forEach((v) {
        mark1!.add(new Mark1.fromJson(v));
      });
    }
    if (json['mark_2'] != null) {
      mark2 = <Mark2>[];
      json['mark_2'].forEach((v) {
        mark2!.add(new Mark2.fromJson(v));
      });
    }
    contactPhones = json['contact_phones'] != null
        ? new ContactPhones.fromJson(json['contact_phones'])
        : null;
    if (json['contacts'] != null) {
      contacts = <Contacts>[];
      json['contacts'].forEach((v) {
        contacts!.add(new Contacts.fromJson(v));
      });
    }
    tokenData = json['token_data'] != null
        ? new TokenData.fromJson(json['token_data'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['custom_message'] = this.customMessage;
    data['custom_code'] = this.customCode;
    if (this.eTags != null) {
      data['e_tags'] = this.eTags!.toJson();
    }
    if (this.settingsScreens != null) {
      data['settings_screens'] =
          this.settingsScreens!.map((v) => v.toJson()).toList();
    }
    if (this.conditions != null) {
      data['conditions'] = this.conditions!.toJson();
    }
    if (this.terms != null) {
      data['terms'] = this.terms!.toJson();
    }
    if (this.about != null) {
      data['about'] = this.about!.map((v) => v.toJson()).toList();
    }
    if (this.mark1 != null) {
      data['mark_1'] = this.mark1!.map((v) => v.toJson()).toList();
    }
    if (this.mark2 != null) {
      data['mark_2'] = this.mark2!.map((v) => v.toJson()).toList();
    }
    if (this.contactPhones != null) {
      data['contact_phones'] = this.contactPhones!.toJson();
    }
    if (this.contacts != null) {
      data['contacts'] = this.contacts!.map((v) => v.toJson()).toList();
    }
    if (this.tokenData != null) {
      data['token_data'] = this.tokenData!.toJson();
    }
    return data;
  }
}

class ETags {
  String? eTagSettings;
  String? eTagBanners;

  ETags({this.eTagSettings, this.eTagBanners});

  ETags.fromJson(Map<String, dynamic> json) {
    eTagSettings = json['e_tag_settings'];
    eTagBanners = json['e_tag_banners'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['e_tag_settings'] = this.eTagSettings;
    data['e_tag_banners'] = this.eTagBanners;
    return data;
  }
}

class SettingsScreens {
  BodyDecode? bodyDecode;
  TitleDecode? titleDecode;

  SettingsScreens({this.bodyDecode, this.titleDecode});

  SettingsScreens.fromJson(Map<String, dynamic> json) {
    bodyDecode = json['body_decode'] != null
        ? new BodyDecode.fromJson(json['body_decode'])
        : null;
    titleDecode = json['title_decode'] != null
        ? new TitleDecode.fromJson(json['title_decode'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.bodyDecode != null) {
      data['body_decode'] = this.bodyDecode!.toJson();
    }
    if (this.titleDecode != null) {
      data['title_decode'] = this.titleDecode!.toJson();
    }
    return data;
  }
}

class BodyDecode {
  String? bodyScreenAr;
  String? bodyScreenEn;
  String? bodyScreenHe;
  bool? b0;

  BodyDecode(
      {this.bodyScreenAr, this.bodyScreenEn, this.bodyScreenHe, this.b0});

  BodyDecode.fromJson(Map<String, dynamic> json) {
    bodyScreenAr = json['body_screen_ar'];
    bodyScreenEn = json['body_screen_en'];
    bodyScreenHe = json['body_screen_he'];
    b0 = json['0'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['body_screen_ar'] = this.bodyScreenAr;
    data['body_screen_en'] = this.bodyScreenEn;
    data['body_screen_he'] = this.bodyScreenHe;
    data['0'] = this.b0;
    return data;
  }
}

class TitleDecode {
  String? titleScreenAr;
  String? titleScreenEn;
  String? titleScreenHe;
  bool? b0;

  TitleDecode(
      {this.titleScreenAr, this.titleScreenEn, this.titleScreenHe, this.b0});

  TitleDecode.fromJson(Map<String, dynamic> json) {
    titleScreenAr = json['title_screen_ar'];
    titleScreenEn = json['title_screen_en'];
    titleScreenHe = json['title_screen_he'];
    b0 = json['0'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title_screen_ar'] = this.titleScreenAr;
    data['title_screen_en'] = this.titleScreenEn;
    data['title_screen_he'] = this.titleScreenHe;
    data['0'] = this.b0;
    return data;
  }
}

class Conditions {
  BodyDecodeCond? bodyDecode;

  Conditions({this.bodyDecode});

  Conditions.fromJson(Map<String, dynamic> json) {
    bodyDecode = json['body_decode'] != null
        ? new BodyDecodeCond.fromJson(json['body_decode'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.bodyDecode != null) {
      data['body_decode'] = this.bodyDecode!.toJson();
    }
    return data;
  }
}

class BodyDecodeCond {
  String? bodyAr;
  String? bodyEn;
  String? bodyHe;

  BodyDecodeCond({this.bodyAr, this.bodyEn, this.bodyHe});

  BodyDecodeCond.fromJson(Map<String, dynamic> json) {
    bodyAr = json['body_ar'];
    bodyEn = json['body_en'];
    bodyHe = json['body_he'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['body_ar'] = this.bodyAr;
    data['body_en'] = this.bodyEn;
    data['body_he'] = this.bodyHe;
    return data;
  }
}

class Terms {
  TermDecode? termDecode;

  Terms({this.termDecode});

  Terms.fromJson(Map<String, dynamic> json) {
    termDecode = json['term_decode'] != null
        ? new TermDecode.fromJson(json['term_decode'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.termDecode != null) {
      data['term_decode'] = this.termDecode!.toJson();
    }
    return data;
  }
}

class TermDecode {
  String? termAr;
  String? termEn;
  String? termHe;

  TermDecode({this.termAr, this.termEn, this.termHe});

  TermDecode.fromJson(Map<String, dynamic> json) {
    termAr = json['term_ar'];
    termEn = json['term_en'];
    termHe = json['term_he'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['term_ar'] = this.termAr;
    data['term_en'] = this.termEn;
    data['term_he'] = this.termHe;
    return data;
  }
}

class About {
  AboutLibraryDecode? aboutLibraryDecode;
  SocialDecode? socialDecode;

  About({this.aboutLibraryDecode, this.socialDecode});

  About.fromJson(Map<String, dynamic> json) {
    aboutLibraryDecode = json['about_library_decode'] != null
        ? new AboutLibraryDecode.fromJson(json['about_library_decode'])
        : null;
    socialDecode = json['social_decode'] != null
        ? new SocialDecode.fromJson(json['social_decode'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.aboutLibraryDecode != null) {
      data['about_library_decode'] = this.aboutLibraryDecode!.toJson();
    }
    if (this.socialDecode != null) {
      data['social_decode'] = this.socialDecode!.toJson();
    }
    return data;
  }
}

class AboutLibraryDecode {
  String? bodyLibaryAr;
  String? bodyLibaryEn;
  String? bodyLibaryHe;

  AboutLibraryDecode({this.bodyLibaryAr, this.bodyLibaryEn, this.bodyLibaryHe});

  AboutLibraryDecode.fromJson(Map<String, dynamic> json) {
    bodyLibaryAr = json['body_libary_ar'];
    bodyLibaryEn = json['body_libary_en'];
    bodyLibaryHe = json['body_libary_he'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['body_libary_ar'] = this.bodyLibaryAr;
    data['body_libary_en'] = this.bodyLibaryEn;
    data['body_libary_he'] = this.bodyLibaryHe;
    return data;
  }
}

class SocialDecode {
  String? tiktok;
  String? whatsup;
  String? facebook;
  String? linkedin;
  String? snabchat;
  String? youtube1;
  String? youtube2;
  String? instegram;
  String? wikipedia;

  SocialDecode(
      {this.tiktok,
      this.whatsup,
      this.facebook,
      this.linkedin,
      this.snabchat,
      this.youtube1,
      this.youtube2,
      this.instegram,
      this.wikipedia});

  SocialDecode.fromJson(Map<String, dynamic> json) {
    tiktok = json['tiktok'];
    whatsup = json['whatsup'];
    facebook = json['facebook'];
    linkedin = json['linkedin'];
    snabchat = json['snabchat'];
    youtube1 = json['youtube1'];
    youtube2 = json['youtube2'];
    instegram = json['instegram'];
    wikipedia = json['wikipedia'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['tiktok'] = this.tiktok;
    data['whatsup'] = this.whatsup;
    data['facebook'] = this.facebook;
    data['linkedin'] = this.linkedin;
    data['snabchat'] = this.snabchat;
    data['youtube1'] = this.youtube1;
    data['youtube2'] = this.youtube2;
    data['instegram'] = this.instegram;
    data['wikipedia'] = this.wikipedia;
    return data;
  }
}

class Mark1 {
  MarkOneDecode? markOneDecode;
  SocialDecode? socialMarkOneDecode;

  Mark1({this.markOneDecode, this.socialMarkOneDecode});

  Mark1.fromJson(Map<String, dynamic> json) {
    markOneDecode = json['mark_one_decode'] != null
        ? new MarkOneDecode.fromJson(json['mark_one_decode'])
        : null;
    socialMarkOneDecode = json['social_mark_one_decode'] != null
        ? new SocialDecode.fromJson(json['social_mark_one_decode'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.markOneDecode != null) {
      data['mark_one_decode'] = this.markOneDecode!.toJson();
    }
    if (this.socialMarkOneDecode != null) {
      data['social_mark_one_decode'] = this.socialMarkOneDecode!.toJson();
    }
    return data;
  }
}

class MarkOneDecode {
  String? bodyMark1Ar;
  String? bodyMark1En;
  String? bodyMark1He;

  MarkOneDecode({this.bodyMark1Ar, this.bodyMark1En, this.bodyMark1He});

  MarkOneDecode.fromJson(Map<String, dynamic> json) {
    bodyMark1Ar = json['body_mark1_ar'];
    bodyMark1En = json['body_mark1_en'];
    bodyMark1He = json['body_mark1_he'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['body_mark1_ar'] = this.bodyMark1Ar;
    data['body_mark1_en'] = this.bodyMark1En;
    data['body_mark1_he'] = this.bodyMark1He;
    return data;
  }
}

class Mark2 {
  MarkTwoDecode? markTwoDecode;
  SocialMarkTwoDecode? socialMarkTwoDecode;

  Mark2({this.markTwoDecode, this.socialMarkTwoDecode});

  Mark2.fromJson(Map<String, dynamic> json) {
    markTwoDecode = json['mark_two_decode'] != null
        ? new MarkTwoDecode.fromJson(json['mark_two_decode'])
        : null;
    socialMarkTwoDecode = json['social_mark_two_decode'] != null
        ? new SocialMarkTwoDecode.fromJson(json['social_mark_two_decode'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.markTwoDecode != null) {
      data['mark_two_decode'] = this.markTwoDecode!.toJson();
    }
    if (this.socialMarkTwoDecode != null) {
      data['social_mark_two_decode'] = this.socialMarkTwoDecode!.toJson();
    }
    return data;
  }
}

class MarkTwoDecode {
  bool? b0;
  String? bodyMark2Ar;
  String? bodyMark2En;
  String? bodyMark2He;

  MarkTwoDecode(
      {this.b0, this.bodyMark2Ar, this.bodyMark2En, this.bodyMark2He});

  MarkTwoDecode.fromJson(Map<String, dynamic> json) {
    b0 = json['0'];
    bodyMark2Ar = json['body_mark2_ar'];
    bodyMark2En = json['body_mark2_en'];
    bodyMark2He = json['body_mark2_he'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['0'] = this.b0;
    data['body_mark2_ar'] = this.bodyMark2Ar;
    data['body_mark2_en'] = this.bodyMark2En;
    data['body_mark2_he'] = this.bodyMark2He;
    return data;
  }
}

class SocialMarkTwoDecode {
  bool? b0;
  String? tiktok;
  String? whatsup;
  String? facebook;
  String? linkedin;
  String? snabchat;
  String? youtube1;
  String? youtube2;
  String? instegram;
  String? wikipedia;

  SocialMarkTwoDecode(
      {this.b0,
      this.tiktok,
      this.whatsup,
      this.facebook,
      this.linkedin,
      this.snabchat,
      this.youtube1,
      this.youtube2,
      this.instegram,
      this.wikipedia});

  SocialMarkTwoDecode.fromJson(Map<String, dynamic> json) {
    b0 = json['0'];
    tiktok = json['tiktok'];
    whatsup = json['whatsup'];
    facebook = json['facebook'];
    linkedin = json['linkedin'];
    snabchat = json['snabchat'];
    youtube1 = json['youtube1'];
    youtube2 = json['youtube2'];
    instegram = json['instegram'];
    wikipedia = json['wikipedia'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['0'] = this.b0;
    data['tiktok'] = this.tiktok;
    data['whatsup'] = this.whatsup;
    data['facebook'] = this.facebook;
    data['linkedin'] = this.linkedin;
    data['snabchat'] = this.snabchat;
    data['youtube1'] = this.youtube1;
    data['youtube2'] = this.youtube2;
    data['instegram'] = this.instegram;
    data['wikipedia'] = this.wikipedia;
    return data;
  }
}

class ContactPhones {
  String? phone1;
  String? phone2;

  ContactPhones({this.phone1, this.phone2});

  ContactPhones.fromJson(Map<String, dynamic> json) {
    phone1 = json['phone1'];
    phone2 = json['phone2'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['phone1'] = this.phone1;
    data['phone2'] = this.phone2;
    return data;
  }
}

class Contacts {
  int? id;
  NameDecode? nameDecode;

  Contacts({this.id, this.nameDecode});

  Contacts.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    nameDecode = json['name_decode'] != null
        ? new NameDecode.fromJson(json['name_decode'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    if (this.nameDecode != null) {
      data['name_decode'] = this.nameDecode!.toJson();
    }
    return data;
  }
}

class NameDecode {
  String? titleAr;
  String? titleEn;
  String? titleHe;

  NameDecode({this.titleAr, this.titleEn, this.titleHe});

  NameDecode.fromJson(Map<String, dynamic> json) {
    titleAr = json['title_ar'];
    titleEn = json['title_en'];
    titleHe = json['title_he'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title_ar'] = this.titleAr;
    data['title_en'] = this.titleEn;
    data['title_he'] = this.titleHe;
    return data;
  }
}

class TokenData {
  Null? countryId;
  Null? userId;

  TokenData({this.countryId, this.userId});

  TokenData.fromJson(Map<String, dynamic> json) {
    countryId = json['country_id'];
    userId = json['user_id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['country_id'] = this.countryId;
    data['user_id'] = this.userId;
    return data;
  }
}