mirrored_repositories/espresso-cash-public/packages/solana/lib/src
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'notification_params.dart';

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

NotificationParams<T> _$NotificationParamsFromJson<T>(
  Map<String, dynamic> json,
  T Function(Object? json) fromJsonT,
) =>
    NotificationParams<T>(
      result: NotificationResult<T>.fromJson(
          json['result'] as Map<String, dynamic>, (value) => fromJsonT(value)),
      subscription: json['subscription'] as int,
    );

Map<String, dynamic> _$NotificationParamsToJson<T>(
  NotificationParams<T> instance,
  Object? Function(T value) toJsonT,
) =>
    <String, dynamic>{
      'result': instance.result.toJson(
        (value) => toJsonT(value),
      ),
      'subscription': instance.subscription,
    };
