fromMap static method

ResetPasswordResult? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static ResetPasswordResult? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'resetPasswordResultOk':
      return ResetPasswordResultOk.fromMap(_map);
    case 'resetPasswordResultPending':
      return ResetPasswordResultPending.fromMap(_map);
    case 'resetPasswordResultDeclined':
      return ResetPasswordResultDeclined.fromMap(_map);
    case null:
    default:
      return null;
  }
}