Generated.fromJson constructor

Generated.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Generated.fromJson(Map<String, Object?> json) => Generated(
      id: json["id"] as String,
      label: json["label"] == null ? null : json["label"] as String,
      tokenType: TokenType.fromJson(json["token_type"]),
      issuedAt: decodeDateTime(json["issued_at"]),
      token: json["token"] as String,
    );