flutter-freaccess-hub/lib/features/module/data/models/license_model.dart

16 lines
399 B
Dart

import 'package:freezed_annotation/freezed_annotation.dart';
import 'module_model.dart';
part 'license_model.freezed.dart';
part 'license_model.g.dart';
@freezed
class LicenseModel with _$LicenseModel {
const factory LicenseModel({
required List<ModuleModel> modules,
}) = _LicenseModel;
factory LicenseModel.fromJson(Map<String, dynamic> json) =>
_$LicenseModelFromJson(json);
}