as<T> method

Future<T> as<T>(
  1. T f(
    1. Map<String, dynamic> e
    )
)

Cast the jsonBody as Type by applying the transformation function, as a result of future.

Implementation

Future<T> as<T>(T f(Map<String, dynamic> e)) async => (await this).as<T>(f);