return new FlowSpecificationAdapter(generator, builder.create());
}
public static void addTypeAdapters(GsonBuilder builder) {
builder
.registerTypeAdapter(Schema.class, new SchemaTypeAdapter())
.registerTypeAdapter(FlowSpecification.class, new FlowSpecificationCodec())
.registerTypeAdapter(FlowletSpecification.class, new FlowletSpecificationCodec())
.registerTypeAdapter(ResourceSpecification.class, new ResourceSpecificationCodec())
.registerTypeAdapterFactory(new AppSpecTypeAdapterFactory());
}