user.g.dart 1.46 KB
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'user.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

User _$UserFromJson(Map<String, dynamic> json) {
  return User(
      json['openid'] as String,
      json['account'] as String,
      json['role_name'] as String,
      json['sellerid'] as String,
      json['sellercode'] as String,
      json['sellername'] as String,
      json['sellerphone'] as String,
      json['sellerAddr'] as String,
      json['scatter'] as int,
      json['room'] as int,
      json['cassette'] as int,
      json['morning'] as String,
      json['noon'] as String,
      json['night'] as String,
      json['userphone'] as String,
      json['token'] as String);
}

Map<String, dynamic> _$UserToJson(User instance) => <String, dynamic>{
      'openid': instance.openid,
      'account': instance.account,
      'role_name': instance.role_name,
      'sellerid': instance.sellerid,
      'sellercode': instance.sellercode,
      'sellername': instance.sellername,
      'sellerphone': instance.sellerphone,
      'sellerAddr': instance.sellerAddr,
      'scatter': instance.scatter,
      'room': instance.room,
      'cassette': instance.cassette,
      'morning': instance.morning,
      'noon': instance.noon,
      'night': instance.night,
      'userphone': instance.userphone,
      'token': instance.token
    };