IntegrationResponse.fromJson constructor

IntegrationResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IntegrationResponse.fromJson(Map<String, dynamic> json) {
  return IntegrationResponse(
      id: json["id"] ?? "",
      applicationId: json["applicationId"] ?? "",
      createdAt:
          DateTime.fromMillisecondsSinceEpoch(json["createdAt"] * 1000),
      name: json["name"] ?? "",
      status: json["status"] ?? "",
      type: json["type"] ?? "",
      updatedAt:
          DateTime.fromMillisecondsSinceEpoch(json["updatedAt"] * 1000),
      metadata: CustomMetadata.fromJson(
        json["metadata"],
      ));
}