/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2023-02-02 10:52:44
 * @LastEditTime : 2023-05-09 17:27:28
 * @Description  : Do not edit
 */
import 'package:wisdom_cli/wisdom_ui.dart';

///小区列表项
class CommunityPickerModel implements WPickerEntity {
  String? id;
  String? name;
  String? address;
  String? districtsName;

  CommunityPickerModel({
    this.id,
    this.name,
    this.address,
    this.districtsName,
  });

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

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

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

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

    return json;
  }

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

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

  @override
  bool get selectDisabled => false;
}
