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

part of 'block_production.dart';

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

BlockProduction _$BlockProductionFromJson(Map<String, dynamic> json) =>
    BlockProduction(
      byIdentity: (json['byIdentity'] as Map<String, dynamic>).map(
        (k, e) => MapEntry(k, ByIdentityValue.fromJson(e)),
      ),
      range: Range.fromJson(json['range'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$BlockProductionToJson(BlockProduction instance) =>
    <String, dynamic>{
      'byIdentity': instance.byIdentity.map((k, e) => MapEntry(k, e.toJson())),
      'range': instance.range.toJson(),
    };

BlockProductionResult _$BlockProductionResultFromJson(
        Map<String, dynamic> json) =>
    BlockProductionResult(
      context: Context.fromJson(json['context'] as Map<String, dynamic>),
      value: BlockProduction.fromJson(json['value'] as Map<String, dynamic>),
    );

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