fromJson static method
Returns a deserialized version of the Bit from various formats.
Implementation
static Bit fromJson(dynamic value) {
if (value is Uint8List) return Bit.fromBinary(value);
if (value is String) return _fromString(value);
if (value is List) return _fromList(value);
if (value is Bit) return value;
throw DeserializationTypeNotFoundException(type: value.runtimeType);
}