xxxxxxxxxx
// ignore_for_file: invalid_annotation_target
import 'package:freezed_annotation/freezed_annotation.dart';
part 'product.freezed.dart';
part 'product.g.dart';
@freezed
class ProductFreezedModel with _$ProductFreezedModel {
const factory ProductFreezedModel({
@JsonKey(name: "_id") required String id,
@JsonKey(name: "user_id") required String userId,
required String name,
required String price,
required String desc,
}) = _Product;
factory ProductFreezedModel.fromJson(Map<String, dynamic> json) =>
_$ProductFreezedModelFromJson(json);
}