APIPermission constructor
APIPermission(})
Implementation
APIPermission(String type,
{this.enabled = true,
this.initTime,
this.endTime,
Map<String, Object>? properties})
: type = normalizeType(type),
properties =
Map<String, Object>.unmodifiable(properties ?? <String, Object>{}) {
if (!validateType(type)) {
throw ArgumentError('Invalid type: $type');
}
}