decode<T> method
dynamic
decode<T>(
- dynamic entity
Implementation
dynamic decode<T>(dynamic entity) {
if (entity is Iterable) {
return _decodeList<T>(entity);
}
if (entity is T) {
return entity;
}
if (entity is Map<String, dynamic>) {
return _decodeMap<T>(entity);
}
return entity;
}