initial commit
This commit is contained in:
commit
217621daac
21 changed files with 1401 additions and 0 deletions
15
lib/models/matrix_user.dart
Normal file
15
lib/models/matrix_user.dart
Normal file
|
@ -0,0 +1,15 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
|
||||
part "matrix_user.freezed.dart";
|
||||
part "matrix_user.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class MatrixUser with _$MatrixUser {
|
||||
const factory MatrixUser({
|
||||
required String userId,
|
||||
required String matrixToken,
|
||||
}) = _MatrixUser;
|
||||
|
||||
factory MatrixUser.fromJson(Map<String, dynamic> json) =>
|
||||
_$MatrixUserFromJson(json);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue