package Ġnot ion . api . v 1 . json Ċ Ċ import Ġcom . google . gson . Field Naming Policy Ċ import Ġcom . google . gson . Gson Ċ import Ġcom . google . gson . Gson Builder Ċ import Ġnot ion . api . Metadata . is Library Maint ainer Mode Ċ import Ġnot ion . api . v 1 . json . gson .* Ċ import Ġnot ion . api . v 1 . model . blocks . Block Ċ import Ġnot ion . api . v 1 . model . blocks . Block Element Update Ċ import Ġnot ion . api . v 1 . model . blocks . BlockType Ċ import Ġnot ion . api . v 1 . model . blocks . Blocks Ċ import Ġnot ion . api . v 1 . model . common . Cover Ċ import Ġnot ion . api . v 1 . model . common . Icon Ċ import Ġnot ion . api . v 1 . model . databases . Database Ċ import Ġnot ion . api . v 1 . model . databases . Databases Ċ import Ġnot ion . api . v 1 . model . databases . Query Results Ċ import Ġnot ion . api . v 1 . model . error . Error Ċ import Ġnot ion . api . v 1 . model . pages . Page Ċ import Ġnot ion . api . v 1 . model . pages . Page Property Item Ċ import Ġnot ion . api . v 1 . model . search . SearchResult Ċ import Ġnot ion . api . v 1 . model . search . SearchResults Ċ import Ġnot ion . api . v 1 . model . users . User Ċ import Ġnot ion . api . v 1 . model . users . Users Ċ import Ġnot ion . api . v 1 . request . blocks . Append Block Children Request Ċ import Ġnot ion . api . v 1 . request . databases . Create Database Request Ċ import Ġnot ion . api . v 1 . request . databases . Query Database Request Ċ import Ġnot ion . api . v 1 . request . databases . Update Database Request Ċ import Ġnot ion . api . v 1 . request . pages . Create Page Request Ċ import Ġnot ion . api . v 1 . request . pages . Update Page Request Ċ import Ġnot ion . api . v 1 . request . search . Search Request Ċ Ċ class ĠGson Serializer Ġ: ĠNot ion Json Serializer Ġ{ ĊĠ Ġprivate Ġval Ġgson : ĠGson ĊĊĠ Ġconstructor ( unknown Property Detection : ĠBoolean Ġ= Ġis Library Maint ainer Mode ()) Ġ{ ĊĠĠĠ Ġval Ġbuilder Ġ= ĊĠĠĠĠĠĠĠ ĠGson Builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. setField Naming Policy ( Field Naming Policy . LOWER _ CASE _ WITH _ UNDER SCO RES ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. register Type Adapter ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSearch Result :: class . java , ĠSearch Result Parser ( unknown Property Detection )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. register Type Adapter ( Block :: class . java , ĠBlock Parser ( unknown Property Detection )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. register Type Adapter ( Icon :: class . java , ĠIcon Parser ( unknown Property Detection )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. register Type Adapter ( Cover :: class . java , ĠCover Parser ( unknown Property Detection )) ĊĊĠĠĠ Ġgson Ġ= ĊĠĠĠĠĠĠĠ Ġif Ġ( unknown Property Detection ) Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġbuilder . register Type Adapter Factory ( Gson Unknown Field Detection ()). create () ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġbuilder . create () ĊĠĠĠĠĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġto Block ( body : ĠString ): ĠBlock Ġ= Ġgson . fromJson ( body , ĠBlock :: class . java ) ĊĠ Ġoverride Ġfun Ġto Blocks ( body : ĠString ): ĠBlocks Ġ= Ġgson . fromJson ( body , ĠBlocks :: class . java ) ĊĠ Ġoverride Ġfun Ġto Database ( body : ĠString ): ĠDatabase Ġ= Ġgson . fromJson ( body , ĠDatabase :: class . java ) ĊĠ Ġoverride Ġfun Ġto Databases ( body : ĠString ): ĠDatabase s Ġ= Ġgson . fromJson ( body , ĠDatabase s :: class . java ) ĊĠ Ġoverride Ġfun Ġto Error ( body : ĠString ): ĠError Ġ= Ġgson . fromJson ( body , ĠError :: class . java ) ĊĠ Ġoverride Ġfun Ġto Page ( body : ĠString ): ĠPage Ġ= Ġgson . fromJson ( body , ĠPage :: class . java ) ĊĠ Ġoverride Ġfun Ġto Page Property Item ( body : ĠString ): ĠPage Property Item Ġ= ĊĠĠĠĠĠ Ġgson . fromJson ( body , ĠPage Property Item :: class . java ) ĊĊĠ Ġoverride Ġfun Ġto Query Results ( body : ĠString ): ĠQuery Results Ġ= ĊĠĠĠĠĠ Ġgson . fromJson ( body , ĠQuery Results :: class . java ) ĊĊĠ Ġoverride Ġfun Ġto SearchResults ( body : ĠString ): ĠSearch Results Ġ= ĊĠĠĠĠĠ Ġgson . fromJson ( body , ĠSearch Results :: class . java ) ĊĊĠ Ġoverride Ġfun Ġto User ( body : ĠString ): ĠUser Ġ= Ġgson . fromJson ( body , ĠUser :: class . java ) ĊĠ Ġoverride Ġfun Ġto Users ( body : ĠString ): ĠUsers Ġ= Ġgson . fromJson ( body , ĠUsers :: class . java ) ĊĊĠ Ġoverride Ġfun ĠtoJson String ( request : ĠCreate Database Request ): ĠString Ġ= Ġgson . toJson ( request ) ĊĠ Ġoverride Ġfun ĠtoJson String ( request : ĠUpdate Database Request ): ĠString Ġ= Ġgson . toJson ( request ) ĊĊĠ Ġoverride Ġfun ĠtoJson String ( block Properties : ĠMap < BlockType , ĠBlock Element Update >): ĠString Ġ= ĊĠĠĠĠĠ Ġgson . toJson ( block Properties ) ĊĊĠ Ġoverride Ġfun ĠtoJson String ( request : ĠAppend Block Children Request ): ĠString Ġ= Ġgson . toJson ( request ) ĊĠ Ġoverride Ġfun ĠtoJson String ( request : ĠCreate Page Request ): ĠString Ġ= Ġgson . toJson ( request ) ĊĠ Ġoverride Ġfun ĠtoJson String ( request : ĠSearch Request ): ĠString Ġ= Ġgson . toJson ( request ) ĊĠ Ġoverride Ġfun ĠtoJson String ( request : ĠQuery Database Request ): ĠString Ġ= Ġgson . toJson ( request ) ĊĠ Ġoverride Ġfun ĠtoJson String ( request : ĠUpdate Page Request ): ĠString Ġ= Ġgson . toJson ( request ) Ċ } Ċ