NmApiKey constructor

const NmApiKey({
  1. required String id,
  2. required String name,
  3. required String prefix,
  4. required String scope,
  5. required DateTime createdAt,
  6. DateTime? lastUsedAt,
  7. DateTime? expiresAt,
  8. bool revoked = false,
})

Creates an NmApiKey.

Implementation

const NmApiKey({
  required this.id,
  required this.name,
  required this.prefix,
  required this.scope,
  required this.createdAt,
  this.lastUsedAt,
  this.expiresAt,
  this.revoked = false,
});