some change
This commit is contained in:
@@ -0,0 +1,152 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'steward_free_bar.freezed.dart';
|
||||
part 'steward_free_bar.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class StewardFreeBar with _$StewardFreeBar {
|
||||
const factory StewardFreeBar({
|
||||
int? count,
|
||||
String? next,
|
||||
String? previous,
|
||||
List<Result>? results,
|
||||
}) = _StewardFreeBar;
|
||||
|
||||
factory StewardFreeBar.fromJson(Map<String, dynamic> json) =>
|
||||
_$StewardFreeBarFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class Result with _$Result {
|
||||
const factory Result({
|
||||
int? id,
|
||||
Steward? steward,
|
||||
dynamic guild,
|
||||
Product? product,
|
||||
String? key,
|
||||
String? create_date,
|
||||
String? modify_date,
|
||||
bool? trash,
|
||||
String? kill_house_name,
|
||||
String? kill_house_mobile,
|
||||
String? kill_house_vet_name,
|
||||
String? kill_house_vet_mobile,
|
||||
String? province,
|
||||
String? city,
|
||||
String? driver_name,
|
||||
String? driver_mobile,
|
||||
dynamic car,
|
||||
String? pelak,
|
||||
int? number_of_carcasses,
|
||||
int? weight_of_carcasses,
|
||||
String? bar_image,
|
||||
String? date,
|
||||
bool? temporary_trash,
|
||||
bool? temporary_deleted,
|
||||
String? created_by,
|
||||
String? modified_by,
|
||||
}) = _Result;
|
||||
|
||||
factory Result.fromJson(Map<String, dynamic> json) => _$ResultFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class Steward with _$Steward {
|
||||
const factory Steward({
|
||||
User? user,
|
||||
String? guilds_name,
|
||||
bool? steward,
|
||||
dynamic allocation_limit,
|
||||
Address? address,
|
||||
String? license_number,
|
||||
String? type_activity,
|
||||
String? area_activity,
|
||||
String? guilds_id,
|
||||
String? create_date,
|
||||
}) = _Steward;
|
||||
|
||||
factory Steward.fromJson(Map<String, dynamic> json) => _$StewardFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class User with _$User {
|
||||
const factory User({
|
||||
String? fullname,
|
||||
String? first_name,
|
||||
String? last_name,
|
||||
int? base_order,
|
||||
String? mobile,
|
||||
String? national_id,
|
||||
String? national_code,
|
||||
String? key,
|
||||
City? city,
|
||||
String? unit_name,
|
||||
String? unit_national_id,
|
||||
String? unit_registration_number,
|
||||
String? unit_economical_number,
|
||||
String? unit_province,
|
||||
String? unit_city,
|
||||
String? unit_postal_code,
|
||||
String? unit_address,
|
||||
}) = _User;
|
||||
|
||||
factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class City with _$City {
|
||||
const factory City({
|
||||
int? id,
|
||||
String? key,
|
||||
String? create_date,
|
||||
String? modify_date,
|
||||
bool? trash,
|
||||
int? province_id_foreign_key,
|
||||
int? city_id_key,
|
||||
String? name,
|
||||
int? product_price,
|
||||
bool? province_center,
|
||||
int? city_number,
|
||||
String? city_name,
|
||||
int? province_number,
|
||||
String? province_name,
|
||||
String? created_by,
|
||||
String? modified_by,
|
||||
int? province,
|
||||
}) = _City;
|
||||
|
||||
factory City.fromJson(Map<String, dynamic> json) => _$CityFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class Address with _$Address {
|
||||
const factory Address({
|
||||
Province? province,
|
||||
City? city,
|
||||
String? address,
|
||||
String? postal_code,
|
||||
}) = _Address;
|
||||
|
||||
factory Address.fromJson(Map<String, dynamic> json) => _$AddressFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class Province with _$Province {
|
||||
const factory Province({
|
||||
String? key,
|
||||
String? name,
|
||||
}) = _Province;
|
||||
|
||||
factory Province.fromJson(Map<String, dynamic> json) =>
|
||||
_$ProvinceFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class Product with _$Product {
|
||||
const factory Product({
|
||||
String? key,
|
||||
String? name,
|
||||
}) = _Product;
|
||||
|
||||
factory Product.fromJson(Map<String, dynamic> json) => _$ProductFromJson(json);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'steward_free_bar_dashboard.freezed.dart';
|
||||
part 'steward_free_bar_dashboard.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class StewardFreeBarDashboard with _$StewardFreeBarDashboard {
|
||||
const factory StewardFreeBarDashboard({
|
||||
String? product,
|
||||
int? totalBars,
|
||||
double? totalQuantity,
|
||||
double? totalWeight,
|
||||
}) = _StewardFreeBarDashboard;
|
||||
|
||||
factory StewardFreeBarDashboard.fromJson(Map<String, dynamic> json) =>
|
||||
_$StewardFreeBarDashboardFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user