import 'package:satu/core/utils/utils_parse.dart';

/// sn : "SL00100003"
/// address : ""
/// ticket_ad_ofd : ""
/// name : "�������������� ��������������� &laquo;qwe&raquo;"
/// biniin : "123132131232"
/// kkmreg : ""


class InfoBean {
  String? sn;
  String? address;
  String? ticketAdOfd;
  String? name;
  String? biniin;
  String? kkmreg;

  static InfoBean? fromMap(dynamic map) {
    if (map == null) return null;
    final InfoBean infoBean = InfoBean();
    infoBean.sn = cast<String>(map['sn']);
    infoBean.address = cast<String>(map['address']);
    infoBean.ticketAdOfd = cast<String>(map['ticket_ad_ofd']);
    infoBean.name = cast<String>(map['name']);
    infoBean.biniin = cast<String>(map['biniin']);
    infoBean.kkmreg = cast<String>(map['kkmreg']);
    return infoBean;
  }

  Map toJson() => {
    'sn': sn,
    'address': address,
    'ticket_ad_ofd': ticketAdOfd,
    'name': name,
    'biniin': biniin,
    'kkmreg': kkmreg,
  };
}