SecretKey.fromJson constructor

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

Implementation

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