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

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

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

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

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

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

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

    return json;
  }

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

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

  @override
  bool get selectDisabled => false;
}
