/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-07-12 11:42:52
 * @LastEditTime : 2023-02-09 16:47:17
 * @Description  : Do not edit
 */
import 'package:wisdom_cli/wisdom_cli.dart';

class SortListModel implements WPickerEntity {
  String? sortName;
  String? id;

  SortListModel({
    this.sortName,
    this.id,
  });

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

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

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

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

    return json;
  }

  @override
  String get selectName => sortName!;

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

  @override
  bool get selectDisabled => false;
}
