Repository: seratch/notion-sdk-jvm (kotlin)

Issue:
ImageBlock does not contain uploaded file link
Hello, I found that the ImageBlock does not get links like this. This link is created when you upload an image to the Notion. Is it planned to add getting this link?
![image](https://user-images.githubusercontent.com/61599652/153759994-79ff5e67-3556-4063-a4bf-93f242edbd06.png)

Pull request description:
This pull request resolves #35

Patch:
diff --git a/core/src/main/kotlin/notion/api/v1/model/blocks/ImageBlock.kt b/core/src/main/kotlin/notion/api/v1/model/blocks/ImageBlock.kt
index a267c1f..2c092f9 100644
--- a/core/src/main/kotlin/notion/api/v1/model/blocks/ImageBlock.kt
+++ b/core/src/main/kotlin/notion/api/v1/model/blocks/ImageBlock.kt
@@ -32,6 +32,8 @@ constructor(
   constructor(
       val type: String? = null,
       val external: External? = null,
+      var file: File? = null,
+      var caption: List<String>? = emptyList(),
   )
 
   open class External
@@ -39,4 +41,11 @@ constructor(
   constructor(
       val url: String? = null,
   )
+
+  open class File
+  @JvmOverloads
+  constructor(
+      val url: String? = null,
+      var expiryTime: String? = null,
+  )
 }


Test patch:
diff --git a/core/src/test/kotlin/tests/model/BlockTest.kt b/core/src/test/kotlin/tests/model/BlockTest.kt
index 606bbb4..97aeb94 100644
--- a/core/src/test/kotlin/tests/model/BlockTest.kt
+++ b/core/src/test/kotlin/tests/model/BlockTest.kt
@@ -14,6 +14,7 @@ class BlockTest {
     assertNotNull(blocks.results[0].asHeadingTwo())
     assertNotNull(blocks.results[1].asParagraph())
     assertNotNull(blocks.results[2].asToggle())
+    assertNotNull(blocks.results[3].asImage())
   }
 
   // https://developers.notion.com/reference/get-block-children
@@ -127,6 +128,22 @@ class BlockTest {
           }
         ]
       }
+    },
+    {
+      "object": "block",
+      "id": "9bc30ad4-9373-46a5-84ab-0a7845ee52e67",
+      "created_time": "2021-03-16T16:31:00.000Z",
+      "last_edited_time": "2021-03-16T16:32:00.000Z",
+      "has_children": false,
+      "type": "image",
+      "image": {
+        "caption": [],
+        "type": "file",
+        "file": {
+          "url": "https://www.example.com/image.png",
+          "expiry_time": "2022-03-03T12+34+56.111Z"
+        }
+      }
     }
   ],
   "next_cursor": null,