fromJson method
Implementation
fromJson(value, TypeContext context) {
String? base64 = value is String ? value : null;
if (base64 != null)
return fromByteArray(value);
List<int>? bytes = value is List<int> ? value : null;
if (value != null)
return Uint8List.fromList(bytes!);
return null;
}