Application.fromJson constructor
Implementation
factory Application.fromJson(Map<String, Object?> json) => Application(
id: json["id"] as String,
name: json["name"] as String,
alias: json["alias"] == null ? null : json["alias"] as String,
description:
json["description"] == null ? null : json["description"] as String,
createdAt: decodeDateTime(json["created_at"]),
updatedAt: json["updated_at"] == null
? null
: decodeDateTime(json["updated_at"]),
archivedAt: json["archived_at"] == null
? null
: decodeDateTime(json["archived_at"]),
secretKey: json["secret_key"] == null
? null
: SecretKey.fromJson(
(json["secret_key"] as Map).cast<String, Object?>(),
),
relationship: json["relationship"] == null
? null
: Relationship.fromJson(
(json["relationship"] as Map).cast<String, Object?>(),
),
);