Responsive<T>.fromJson constructor
Implementation
Responsive.fromJson(Map<String, dynamic> map, {T decoder(dynamic element)?}) {
if (decoder == null) {
values = map.map((key, value) {
assert(value is T);
return MapEntry(parseScreenScope(json.decode(key)), value);
});
} else {
values = map.map((key, value) {
return MapEntry(parseScreenScope(json.decode(key)), decoder(value));
});
}
}