Fetch account data
This commit is contained in:
parent
26b8e99a90
commit
97f4bc78f0
4 changed files with 46 additions and 2 deletions
16
lib/models/account_data.dart
Normal file
16
lib/models/account_data.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
part "account_data.freezed.dart";
|
||||
part "account_data.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class AccountData with _$AccountData {
|
||||
const factory AccountData({
|
||||
required String userId,
|
||||
required String? roomId,
|
||||
required String type,
|
||||
required dynamic content,
|
||||
}) = _AccountData;
|
||||
|
||||
factory AccountData.fromJson(Map<String, Object?> json) =>
|
||||
_$AccountDataFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue