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

part of 'latest_blockhash.dart';

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

LatestBlockhash _$LatestBlockhashFromJson(Map<String, dynamic> json) =>
    LatestBlockhash(
      blockhash: json['blockhash'] as String,
      lastValidBlockHeight: json['lastValidBlockHeight'] as int,
    );

Map<String, dynamic> _$LatestBlockhashToJson(LatestBlockhash instance) =>
    <String, dynamic>{
      'blockhash': instance.blockhash,
      'lastValidBlockHeight': instance.lastValidBlockHeight,
    };

LatestBlockhashResult _$LatestBlockhashResultFromJson(
        Map<String, dynamic> json) =>
    LatestBlockhashResult(
      value: LatestBlockhash.fromJson(json['value'] as Map<String, dynamic>),
      context: Context.fromJson(json['context'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$LatestBlockhashResultToJson(
        LatestBlockhashResult instance) =>
    <String, dynamic>{
      'context': instance.context.toJson(),
      'value': instance.value.toJson(),
    };
