build method

  1. @override
Map<String, Object?> build(
  1. {bool includeId = true}
)
override

Implementation

@override
Map<String, Object?> build({bool includeId = true}) => {
      if (includeId) 'id': id.toString(),
      'type': type.value,
      if (allow != null) 'allow': allow!.value.toString(),
      if (deny != null) 'deny': deny!.value.toString(),
    };