PartituraDaRotina class final
Os metadados de uma partitura enviada: o que partituras/{referencia} guarda.
Constructors
- PartituraDaRotina({required String referencia, required String profUid, required String nome, required int tamanho, required int partes})
-
const
-
PartituraDaRotina.fromJson(String referencia, Map<
String, Object?> json) -
Lê os metadados do documento
referencia. Lança PartituraException se falta campo ou se o tipo não é o esperado.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- nome → String
-
O nome do arquivo, como o professor o enviou (sem caminho).
final
- partes → int
-
Quantos pedaços o arquivo levou.
final
- profUid → String
-
O professor que enviou.
final
- referencia → String
-
A referência (o id do documento).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tamanho → int
-
O tamanho do arquivo, em bytes.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Os campos do documento (sem a referência, que é o id, e sem a hora do servidor).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited