added new models
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// ignore_for_file: invalid_annotation_target
|
||||
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'organization.freezed.dart';
|
||||
part 'organization.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class Organization with _$Organization {
|
||||
const factory Organization({
|
||||
required String? name,
|
||||
|
||||
}) = _Organization;
|
||||
|
||||
factory Organization.fromJson(Map<String, Object?> json) =>
|
||||
_$OrganizationFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user