forked from eatvio/eatvio_app
20 lines
757 B
Dart
20 lines
757 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'statistics_model.freezed.dart';
|
|
part 'statistics_model.g.dart';
|
|
|
|
@freezed
|
|
abstract class StatisticsModel with _$StatisticsModel {
|
|
|
|
factory StatisticsModel({
|
|
@JsonKey(name: 'count_referal') int? countReferal,
|
|
@JsonKey(name: 'count_blog_posts') int? blogPostsCount,
|
|
@JsonKey(name: 'count_recipes') int? recipesCount,
|
|
@JsonKey(name: 'count_diets') int? dietsCount,
|
|
@JsonKey(name: 'count_consultants') int? consultationsCount,
|
|
@JsonKey(name: 'count_products_nutritional_values') int? qwe,
|
|
@JsonKey(name: 'referral_link') String? refLink,
|
|
}) = _StatisticsModel;
|
|
|
|
factory StatisticsModel.fromJson(Map<String, dynamic> json) => _$StatisticsModelFromJson(json);
|
|
} |