CreateRequest.fromJson constructor

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

Implementation

factory CreateRequest.fromJson(Map<String, Object?> json) => CreateRequest(
      delivery: json["delivery"] == null
          ? null
          : DeliveryInput.fromJson(
              (json["delivery"] as Map).cast<String, Object?>(),
            ),
      access: json["access"] == null
          ? null
          : AccessRequest.fromJson(
              (json["access"] as Map).cast<String, Object?>(),
            ),
      createdBy: json["created_by"] == null
          ? null
          : inttegro_file.ActorInput.fromJson(
              (json["created_by"] as Map).cast<String, Object?>(),
            ),
      customData: json["custom_data"] == null
          ? null
          : core.CustomData.fromJson(json["custom_data"]),
      expiresAt: json["expires_at"] == null
          ? null
          : decodeDateTime(json["expires_at"]),
      fileId: json["file_id"] as String,
    );