fromString method

AccountKind? fromString(
  1. String val
)

Implementation

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