fromJSON static method

PageNode fromJSON(
  1. String input
)

Implementation

static PageNode fromJSON(String input) {
  var map = jsonDecode(input);
  return PageNode(
    imageType: imageTypeFromString(map['imageType']),
    text: map['text'],
  );
}