SystemFeatures.fromJson constructor

SystemFeatures.fromJson(
  1. Map<String, dynamic> features
)

Implementation

factory SystemFeatures.fromJson(Map<String, dynamic> features) =>
    SystemFeatures(
        features['hasFlash'] ?? false,
        features['hasBackCamera'] ?? false,
        features['hasFrontCamera'] ?? false);