SDKPublishUpdates class

Annotations
  • @JsonSerializable.new()

Constructors

SDKPublishUpdates({Map<String, DateTime> fonts = const {}, Map<String, DateTime> layouts = const {}, Map<String, DateTime> apis = const {}, Map<String, DateTime> variables = const {}, Map<String, DateTime> conditions = const {}, Map<String, Set<String>> layoutFonts = const {}, Map<String, Set<String>> layoutApis = const {}, Map<String, Set<String>> layoutCanvases = const {}, Map<String, String> canvasPaths = const {}})
Creates a new instance of SDKPublishUpdates.
SDKPublishUpdates.fromJson(Map<String, dynamic> json)
Creates a new instance of SDKPublishUpdates from a JSON map.
factory

Properties

apis → Map<String, DateTime>
A map that holds a set of layout ids as keys, and the last time the layout was updated as the value.
final
canvasPaths → Map<String, String>
A map of canvas ids -> the canvas's URL path pattern, such as guide/:id, for canvases that have one.
final
conditions → Map<String, DateTime>
A map that holds a set of layout ids as keys, and the last time the layout was updated as the value.
final
fonts → Map<String, DateTime>
The last time the fonts collection received an update.
final
hashCode → int
The hash code for this object.
no setterinherited
layoutApis → Map<String, Set<String>>
A map that holds a mapping of layout ids -> api ids.
final
layoutCanvases → Map<String, Set<String>>
A map that holds a mapping of layout ids -> the ids of the canvases the layout holds.
final
layoutFonts → Map<String, Set<String>>
A map that holds a mapping of layout ids -> font ids.
final
layouts → Map<String, DateTime>
A map that holds a set of layout ids as keys, and the last time the layout was updated as the value.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
variables → Map<String, DateTime>
A map that holds a set of layout ids as keys, and the last time the layout was updated as the value.
final

Methods

copyWith({Map<String, DateTime>? fonts, Map<String, DateTime>? layouts, Map<String, DateTime>? apis, Map<String, DateTime>? variables, Map<String, DateTime>? conditions, Map<String, Set<String>>? layoutFonts, Map<String, Set<String>>? layoutApis, Map<String, Set<String>>? layoutCanvases, Map<String, String>? canvasPaths}) → SDKPublishUpdates
Creates a copy of this instance with the provided parameters.
layoutIdForCanvas(String canvasId) → String?
The id of the layout that holds canvas canvasId according to layoutCanvases, if any.
merge(SDKPublishUpdates newer) → SDKPublishUpdates
These updates with newer applied on top: what the publish model holds after a publish that changed only some of the layouts (for instance the layouts of one page of a project).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this instance to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited