as<T> method

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

Cast the jsonBody as Type by applying the transformation function.

Implementation

T as<T>(T f(Map<String, dynamic> e)) => f(jsonBody);