SafeSearchAnnotation.fromJson constructor

SafeSearchAnnotation.fromJson(
  1. Map json_
)

Implementation

SafeSearchAnnotation.fromJson(core.Map json_)
    : this(
        adult:
            json_.containsKey('adult') ? json_['adult'] as core.String : null,
        medical: json_.containsKey('medical')
            ? json_['medical'] as core.String
            : null,
        racy: json_.containsKey('racy') ? json_['racy'] as core.String : null,
        spoof:
            json_.containsKey('spoof') ? json_['spoof'] as core.String : null,
        violence: json_.containsKey('violence')
            ? json_['violence'] as core.String
            : null,
      );