class GoodsDetailsImgModel {
  List<String> image_detail_list;
  String provider;
  String good_id;

  String name;
  String desc;
  String icon;
  String title;
  String moduleType;
  String moduleKey;
  String isTopMargin;
  String isLeftRightMargin;
  String isShow;
  String topMargin;
  String leftRightMargin;
  String topLeftRadius;
  String topRightRadius;
  String bottomLeftRadius;
  String bottomRightRadius;
  String bgColor;
  String titleColor;

  GoodsDetailsImgModel({
    this.image_detail_list,
    this.provider,
    this.good_id,
    this.name,
    this.desc,
    this.icon,
    this.title,
    this.moduleType,
    this.moduleKey,
    this.isTopMargin,
    this.isLeftRightMargin,
    this.isShow,
    this.topMargin,
    this.leftRightMargin,
    this.topLeftRadius,
    this.topRightRadius,
    this.bottomLeftRadius,
    this.bottomRightRadius,
    this.bgColor,
    this.titleColor,
  });

  GoodsDetailsImgModel.fromJson(Map<String, dynamic> json) {
    image_detail_list = json['image_detail_list'] != null ? new List<String>.from(json['image_detail_list']) : null;
    provider = json['provider'];
    good_id = json['good_id'];

    name = json['name'];
    desc = json['desc'];
    icon = json['icon'];
    title = json['title'];
    moduleType = json['module_type'];
    moduleKey = json['module_key'];
    isTopMargin = json['is_top_margin'];
    isLeftRightMargin = json['is_left_right_margin'];
    isShow = json['is_show'];
    topMargin = json['top_margin'];
    leftRightMargin = json['left_right_margin'];
    topLeftRadius = json['top_left_radius'];
    topRightRadius = json['top_right_radius'];
    bottomLeftRadius = json['bottom_left_radius'];
    bottomRightRadius = json['bottom_right_radius'];
    bgColor = json['bg_color'];
    titleColor = json['title_color'];
  }

  GoodsDetailsImgModel copyWith(List<String> newImgs) {
    return GoodsDetailsImgModel(
      image_detail_list: newImgs,
      provider: provider,
      good_id: good_id,
      icon: icon,
      titleColor: titleColor,
      title: title,
      name: name,
      desc: desc,
      moduleKey: moduleKey,
      moduleType: moduleType,
      isTopMargin: isTopMargin,
      isLeftRightMargin: isLeftRightMargin,
      isShow: isShow,
      topMargin: topMargin,
      leftRightMargin: leftRightMargin,
      topLeftRadius: topLeftRadius,
      topRightRadius: topRightRadius,
      bottomLeftRadius: bottomLeftRadius,
      bottomRightRadius: bottomRightRadius,
      bgColor: bgColor,
    );
  }

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

    data['name'] = this.name;
    data['desc'] = this.desc;
    data['icon'] = this.icon;
    data['title'] = this.title;
    data['module_type'] = this.moduleType;
    data['module_key'] = this.moduleKey;
    data['is_top_margin'] = this.isTopMargin;
    data['is_left_right_margin'] = this.isLeftRightMargin;
    data['is_show'] = this.isShow;
    data['top_margin'] = this.topMargin;
    data['left_right_margin'] = this.leftRightMargin;
    data['top_left_radius'] = this.topLeftRadius;
    data['top_right_radius'] = this.topRightRadius;
    data['bottom_left_radius'] = this.bottomLeftRadius;
    data['bottom_right_radius'] = this.bottomRightRadius;
    data['bg_color'] = this.bgColor;
    data['title_color'] = this.titleColor;

    return data;
  }
}
