// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'order_database.dart';

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

AssetEntity _$AssetEntityFromJson(Map<String, dynamic> json) => AssetEntity();

Map<String, dynamic> _$AssetEntityToJson(AssetEntity instance) =>
    <String, dynamic>{};

OrderEntity _$OrderEntityFromJson(Map<String, dynamic> json) => OrderEntity(
      orderId: json['oid'] as String,
      sku: json['sku'] as String,
      state: json['state'] as int,
      attr: json['attr'] as int,
      method: json['method'] as int,
      currency: json['currency'] as String? ?? '',
      cost: (json['cost'] as num?)?.toDouble() ?? 0.0,
      timestamp: json['ts'] as int? ?? 0,
      category: json['category'] as String? ?? '',
      manifest: _$JsonConverterFromJson<String, Manifest>(
          json['manifest'], manifestStringConvert.fromJson),
      errorInfo: json['err_info'] as String? ?? '',
    );

Map<String, dynamic> _$OrderEntityToJson(OrderEntity instance) =>
    <String, dynamic>{
      'oid': instance.orderId,
      'sku': instance.sku,
      'state': instance.state,
      'attr': instance.attr,
      'method': instance.method,
      'err_info': instance.errorInfo,
      'currency': instance.currency,
      'cost': instance.cost,
      'ts': instance.timestamp,
      'category': instance.category,
      'manifest': _$JsonConverterToJson<String, Manifest>(
          instance.manifest, manifestStringConvert.toJson),
    };

Value? _$JsonConverterFromJson<Json, Value>(
  Object? json,
  Value? Function(Json json) fromJson,
) =>
    json == null ? null : fromJson(json as Json);

Json? _$JsonConverterToJson<Json, Value>(
  Value? value,
  Json? Function(Value value) toJson,
) =>
    value == null ? null : toJson(value);
