@@ -43,13 +43,13 @@ export interface PostResponse {
4343 * @type {string }
4444 * @memberof PostResponse
4545 */
46- originalPostId : string ;
46+ originalPostId ? : string ;
4747 /**
4848 * リプライ先ID|リプライでない場合は含まれません。
4949 * @type {string }
5050 * @memberof PostResponse
5151 */
52- replyToPostId : string ;
52+ replyToPostId ? : string ;
5353 /**
5454 *
5555 * @type {User }
@@ -61,7 +61,7 @@ export interface PostResponse {
6161 * @type {string }
6262 * @memberof PostResponse
6363 */
64- text : string ;
64+ text ? : string ;
6565 /**
6666 *
6767 * @type {Date }
@@ -73,7 +73,7 @@ export interface PostResponse {
7373 * @type {Post }
7474 * @memberof PostResponse
7575 */
76- originalPost : Post ;
76+ originalPost ? : Post ;
7777 /**
7878 * リポスト済み
7979 * @type {boolean }
@@ -106,12 +106,8 @@ export interface PostResponse {
106106export function instanceOfPostResponse ( value : object ) : boolean {
107107 let isInstance = true ;
108108 isInstance = isInstance && "id" in value ;
109- isInstance = isInstance && "originalPostId" in value ;
110- isInstance = isInstance && "replyToPostId" in value ;
111109 isInstance = isInstance && "author" in value ;
112- isInstance = isInstance && "text" in value ;
113110 isInstance = isInstance && "postedAt" in value ;
114- isInstance = isInstance && "originalPost" in value ;
115111 isInstance = isInstance && "reposted" in value ;
116112 isInstance = isInstance && "repostCount" in value ;
117113 isInstance = isInstance && "favorited" in value ;
@@ -131,12 +127,12 @@ export function PostResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
131127 return {
132128
133129 'id' : json [ 'id' ] ,
134- 'originalPostId' : json [ 'original_post_id' ] ,
135- 'replyToPostId' : json [ 'reply_to_post_id' ] ,
130+ 'originalPostId' : ! exists ( json , 'original_post_id' ) ? undefined : json [ 'original_post_id' ] ,
131+ 'replyToPostId' : ! exists ( json , 'reply_to_post_id' ) ? undefined : json [ 'reply_to_post_id' ] ,
136132 'author' : UserFromJSON ( json [ 'author' ] ) ,
137- 'text' : json [ 'text' ] ,
133+ 'text' : ! exists ( json , 'text' ) ? undefined : json [ 'text' ] ,
138134 'postedAt' : ( new Date ( json [ 'posted_at' ] ) ) ,
139- 'originalPost' : PostFromJSON ( json [ 'original_post' ] ) ,
135+ 'originalPost' : ! exists ( json , 'original_post' ) ? undefined : PostFromJSON ( json [ 'original_post' ] ) ,
140136 'reposted' : json [ 'reposted' ] ,
141137 'repostCount' : json [ 'repost_count' ] ,
142138 'favorited' : json [ 'favorited' ] ,
0 commit comments