19 lines
471 B
Dart
19 lines
471 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'module_model.freezed.dart';
|
|
part 'module_model.g.dart';
|
|
|
|
@freezed
|
|
class ModuleModel with _$ModuleModel {
|
|
const factory ModuleModel({
|
|
required String key,
|
|
required String display,
|
|
required String expirationDate,
|
|
required String startDate,
|
|
required int quantity,
|
|
}) = _ModuleModel;
|
|
|
|
factory ModuleModel.fromJson(Map<String, dynamic> json) =>
|
|
_$ModuleModelFromJson(json);
|
|
}
|