16 lines
413 B
Dart
16 lines
413 B
Dart
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,
|
|
required String? nonce,
|
|
}) = _MatrixUser;
|
|
|
|
factory MatrixUser.fromJson(Map<String, dynamic> json) =>
|
|
_$MatrixUserFromJson(json);
|
|
}
|