AddContentRestriction.fromJson constructor

AddContentRestriction.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AddContentRestriction.fromJson(Map<String, Object?> json) {
  return AddContentRestriction(
    operation: AddContentRestrictionOperation.fromValue(
        json[r'operation'] as String? ?? ''),
    restrictions: AddContentRestrictionRestrictions.fromJson(
        json[r'restrictions'] as Map<String, Object?>? ?? const {}),
  );
}