Convert null value from Object to bool.
null
bool
bool boolFromJson(Object? json) => (json as bool?) ?? false;