fromJson method

dynamic fromJson(
  1. dynamic value,
  2. TypeContext context
)
override

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;
}