// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'mine_profile_model.dart';

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

MineProfileModel _$MineProfileModelFromJson(Map<String, dynamic> json) {
  return MineProfileModel(
    json['username'] as String,
    json['avatar'] as String,
    json['InviteCode'] as String,
    json['user_lv_name'] as String,
    json['user_lv_icon'] as String,
    json['total'] as String,
    (json['grid_views'] as List)
        ?.map((e) => e == null
            ? null
            : MineProfileDataModel.fromJson(e as Map<String, dynamic>))
        ?.toList(),
  );
}

Map<String, dynamic> _$MineProfileModelToJson(MineProfileModel instance) =>
    <String, dynamic>{
      'username': instance.username,
      'avatar': instance.avatar,
      'InviteCode': instance.inviteCode,
      'user_lv_name': instance.userLvName,
      'user_lv_icon': instance.userLvIcon,
      'total': instance.total,
      'grid_views': instance.datas,
    };

MineProfileDataModel _$MineProfileDataModelFromJson(Map<String, dynamic> json) {
  return MineProfileDataModel(
    json['name'] as String,
    json['value'] as String,
  );
}

Map<String, dynamic> _$MineProfileDataModelToJson(
        MineProfileDataModel instance) =>
    <String, dynamic>{
      'name': instance.name,
      'value': instance.value,
    };
