fromJson method

  1. @override
bool? fromJson(
  1. Object? json
)

Implementation

@override
bool? fromJson(Object? json) => json == null
    ? null
    : json is bool
        ? json
        : (json is num ? json > 0 : (json == '1' || json == 'true'));