// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'discount_add_response.dart';

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

PriceInformation _$PriceInformationFromJson(Map<String, dynamic> json) =>
    PriceInformation(
      net: (json['net'] as num).toDouble(),
      gross: (json['gross'] as num).toDouble(),
    );

Map<String, dynamic> _$PriceInformationToJson(PriceInformation instance) =>
    <String, dynamic>{'net': instance.net, 'gross': instance.gross};

NoteInformation _$NoteInformationFromJson(Map<String, dynamic> json) =>
    NoteInformation(
      rowId: json['row_id'] as String,
      noteDescription: json['note_description'] as String,
    );

Map<String, dynamic> _$NoteInformationToJson(NoteInformation instance) =>
    <String, dynamic>{
      'row_id': instance.rowId,
      'note_description': instance.noteDescription,
    };

UpdatedValues _$UpdatedValuesFromJson(
  Map<String, dynamic> json,
) => UpdatedValues(
  discount: PriceInformation.fromJson(json['discount'] as Map<String, dynamic>),
  receipt: PriceInformation.fromJson(json['receipt'] as Map<String, dynamic>),
  article: ArticleDTO.fromJson(json['article'] as Map<String, dynamic>),
  note: NoteInformation.fromJson(json['note'] as Map<String, dynamic>),
);

Map<String, dynamic> _$UpdatedValuesToJson(UpdatedValues instance) =>
    <String, dynamic>{
      'discount': instance.discount,
      'receipt': instance.receipt,
      'note': instance.note,
      'article': instance.article,
    };

DiscountAddResponseDTO _$DiscountAddResponseDTOFromJson(
  Map<String, dynamic> json,
) => DiscountAddResponseDTO(
  values: UpdatedValues.fromJson(json['values'] as Map<String, dynamic>),
  succeeded: json['succeeded'] as bool,
  message: json['message'] as String,
);

Map<String, dynamic> _$DiscountAddResponseDTOToJson(
  DiscountAddResponseDTO instance,
) => <String, dynamic>{
  'succeeded': instance.succeeded,
  'message': instance.message,
  'values': instance.values,
};
