/*
 * @Author       : WuWei
 * @LastEditors: ChenYaJin
 * @Date         : 2022-07-12 11:42:52
 * @LastEditTime: 2022-10-14 15:08:24
 * @Description  : Do not edit
 */
import 'package:wisdom_cli/wisdom_cli.dart';

class InnerSortListModel implements WPickerEntity {
  String? name;
  String? id;
  String? type;

  InnerSortListModel({
    this.name,
    this.id,
    this.type,
  });

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

    name = map['name'];
    id = map['id'];
    type = map['type'];
  }

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

    json['name'] = this.name;
    json['id'] = this.id;
    json['type'] = this.type;

    return json;
  }

  @override
  String get selectName => name ?? '';

  @override
  String get selectUnique => id ?? '';

  @override
  bool get selectDisabled => false;
}
