List asList

The decodedBody typed to a List.

This is a convenience for casting decodedBody to an expected type as well as type-checking the decoded body.

Source

List<dynamic> get asList => decodedBody as List;