json<T> method

T json<T>(
  1. T fromJson(
    1. Map<String, dynamic>
    )
)

Converts this map to object T using the converter function fromJson

Implementation

T json<T>(T Function(Map<String, dynamic>) fromJson) {
  return fromJson(cast());
}