fromAsync static method

FutureOr<APIConfig?> fromAsync(
  1. dynamic o, [
  2. dynamic def
])

Constructs an APIConfig instance from o, returning def if o is invalid. (Async mode, allows async calls like URL resolution).

Implementation

static FutureOr<APIConfig?> fromAsync(dynamic o, [dynamic def]) =>
    _fromImpl(o, allowAsync: true, def: def);