import 'dart:convert'; import 'dart:ffi'; import 'package:json_annotation/json_annotation.dart'; part 'breads_dto.g.dart'; @JsonSerializable(createToJson: false) class BreadsDto { final List? foods; const BreadsDto({this.foods}); factory BreadsDto.fromJson(Map json) => _$BreadsDtoFromJson(json); } @JsonSerializable(createToJson: false) class BreadDataDto { final int? fdcId; final String? brandName; final String? description; final String? image; const BreadDataDto({this.fdcId, this.brandName, this.description, this.image}); factory BreadDataDto.fromJson(Map json) => _$BreadDataDtoFromJson(json); }