boolNonNullFromJson function

bool boolNonNullFromJson(
  1. dynamic value
)

Implementation

bool boolNonNullFromJson(dynamic value) {
  if (value is bool) return value;
  return value.toString().toLowerCase() == 'true';
}