/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-10-19 15:00:49
 * @LastEditTime : 2023-05-15 15:42:04
 * @Description  : Do not edit
 */
class ServeModel {
  String? types;
  List<ContentOfServeModelModel>? content;

  ServeModel({
    this.types,
    this.content,
  });

  ServeModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    types = map['types'];
    content = List<ContentOfServeModelModel>.from((map["content"] ?? [])
        .map((x) => ContentOfServeModelModel.fromJson(x)));
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['types'] = this.types;
    json['content'] =
        List<dynamic>.from((content ?? []).map((x) => x.toJson()));

    return json;
  }
}

class ContentOfServeModelModel {
  String? name;
  num? number;

  ContentOfServeModelModel({
    this.name,
    this.number,
  });

  ContentOfServeModelModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    name = map['name'];
    number = map['number'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['name'] = this.name;
    json['number'] = this.number;

    return json;
  }
}
