fromJson<T> method Null safety

T fromJson<T>(
  1. dynamic json
)

Inverse of toJson: Converts a value obtained from JsonCodec.decode into a value that can be hold by data classes.

Implementation

T fromJson<T>(dynamic json);