28 lines
679 B
Dart
28 lines
679 B
Dart
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<BreadDataDto>? foods;
|
|
|
|
const BreadsDto({this.foods});
|
|
|
|
factory BreadsDto.fromJson(Map<String, dynamic> 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<String, dynamic> json) => _$BreadDataDtoFromJson(json);
|
|
} |