Interface JsonSerializable
- All Known Subinterfaces:
DependencyGraphI<V,
E>
- All Known Implementing Classes:
AbstractAntiPattern
,AbstractAR
,Annotation
,AR1
,AR20
,AR21
,AR22
,AR23
,AR24
,AR3
,AR4
,AR6
,AR7
,ConfigFile
,CyclicDependency
,Delta
,Endpoint
,Field
,Flow
,GreedyMicroservice
,HubLikeMicroservice
,JClass
,Method
,MethodCall
,MethodDependencyGraph
,Microservice
,MicroserviceSystem
,NoApiGateway
,Node
,NoHealthcheck
,Parameter
,ProjectFile
,RestCall
,ServiceChain
,ServiceDependencyGraph
,SystemChange
,WobblyServiceInteraction
,WrongCuts
public interface JsonSerializable
Interface for classes that can be serialized to JSON object
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.JsonArray
toJsonArray
(Iterable<? extends JsonSerializable> list) This method is a generalizable implementation for converting an iterable of objects that extends this class usingtoJsonObject()
to a JsonArraycom.google.gson.JsonObject
This method is a generalizable definition for converting an object of any type to a JsonObjectstatic com.google.gson.JsonArray
toShortJsonArray
(Iterable<Flow> list)
-
Method Details
-
toJsonObject
com.google.gson.JsonObject toJsonObject()This method is a generalizable definition for converting an object of any type to a JsonObject- Returns:
- a JsonObject representing this
-
toJsonArray
This method is a generalizable implementation for converting an iterable of objects that extends this class usingtoJsonObject()
to a JsonArray- Parameters:
list
-- Returns:
-
toShortJsonArray
-