Created
August 30, 2022 04:19
-
-
Save mono0926/28bbec767450ab51c813d562686297a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@freezed | |
class User with _$User { | |
@JsonSerializable() | |
const factory User( | |
@JsonKey() String? displayName, | |
) = _User; | |
const User._(); | |
factory User.fromJson(JsonMap json) => _$UserFromJson(json); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment