PermissionSchema constructor

PermissionSchema({
  1. Map<String, bool>? fields,
  2. Iterable<String>? canProduceSources,
})

Implementation

factory PermissionSchema({
  $core.Map<$core.String, $core.bool>? fields,
  $core.Iterable<$core.String>? canProduceSources,
}) {
  final $result = create();
  if (fields != null) {
    $result.fields.addAll(fields);
  }
  if (canProduceSources != null) {
    $result.canProduceSources.addAll(canProduceSources);
  }
  return $result;
}