as<T> method
Passes this to parser and returns the result.
Use this for strongly-typed deserialization without intermediate
variables. Example: response.as(User.fromResponse).
Implementation
T as<T>(T Function(LuckyResponse) parser) => parser(this);