// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'stream_deepseek_data.dart';

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

StreamDeepseekData _$StreamDeepseekDataFromJson(Map<String, dynamic> json) =>
    StreamDeepseekData(
      id: json['id'] as String,
      object: json['object'] as String,
      created: (json['created'] as num).toInt(),
      model: json['model'] as String,
      choices:
          (json['choices'] as List<dynamic>?)
              ?.map((e) => Choices.fromJson(e as Map<String, dynamic>))
              .toList(),
    );

Map<String, dynamic> _$StreamDeepseekDataToJson(StreamDeepseekData instance) =>
    <String, dynamic>{
      'id': instance.id,
      'object': instance.object,
      'created': instance.created,
      'model': instance.model,
      'choices': instance.choices,
    };

Choices _$ChoicesFromJson(Map<String, dynamic> json) => Choices(
  index: (json['index'] as num?)?.toInt(),
  delta:
      json['delta'] == null
          ? null
          : Delta.fromJson(json['delta'] as Map<String, dynamic>),
  finishReason: json['finishReason'] as String?,
);

Map<String, dynamic> _$ChoicesToJson(Choices instance) => <String, dynamic>{
  'index': instance.index,
  'delta': instance.delta,
  'finishReason': instance.finishReason,
};

Delta _$DeltaFromJson(Map<String, dynamic> json) => Delta(
  role: json['role'] as String?,
  content: json['content'] as String?,
  reasoningContent: json['reasoning_content'] as String?,
);

Map<String, dynamic> _$DeltaToJson(Delta instance) => <String, dynamic>{
  'role': instance.role,
  'content': instance.content,
  'reasoning_content': instance.reasoningContent,
};
