@Test public void only_required_fields() throws JSONException { component = FlexBoxComponent.newBuilder(FlexMessageComponent.Layout.VERTICAL, contents).build(); messageShouldBe("{" + " \"type\": \"box\"," + " \"layout\": \"vertical\"," + " \"contents\": [" + " {" + " \"type\": \"text\"," + " \"text\": \"Hello, World!\"" + " }," + " {" + " \"type\": \"image\"," + " \"url\": \"https: " }" + " ]" + "}"); }
public static Builder newBuilder(@NonNull Layout layout, @NonNull List<FlexMessageComponent> contents) { return new Builder(layout, contents); }
FlexBoxComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull Layout layout, @NonNull List<FlexMessageComponent> contents) { return new Builder(layout, contents); } }
FlexBoxComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull Layout layout, @NonNull List<FlexMessageComponent> contents) { return new Builder(layout, contents); } private  FlexBoxComponent(); private  FlexBoxComponent(@NonNull Builder builder); }
FlexBoxComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull Layout layout, @NonNull List<FlexMessageComponent> contents) { return new Builder(layout, contents); } private  FlexBoxComponent(); private  FlexBoxComponent(@NonNull Builder builder); static Builder newBuilder(@NonNull Layout layout,
                                     @NonNull List<FlexMessageComponent> contents); @NonNull @Override JSONObject toJsonObject(); }
FlexBoxComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull Layout layout, @NonNull List<FlexMessageComponent> contents) { return new Builder(layout, contents); } private  FlexBoxComponent(); private  FlexBoxComponent(@NonNull Builder builder); static Builder newBuilder(@NonNull Layout layout,
                                     @NonNull List<FlexMessageComponent> contents); @NonNull @Override JSONObject toJsonObject();  }