fromString method
Implementation
AccountKind? fromString(String val) {
final override = {
'guest': AccountKind.guest,
'user': AccountKind.user,
}[val];
// ignore: unnecessary_this
return this.contains(override) ? override : null;
}
AccountKind? fromString(String val) {
final override = {
'guest': AccountKind.guest,
'user': AccountKind.user,
}[val];
// ignore: unnecessary_this
return this.contains(override) ? override : null;
}