fromJson method Null safety

RenderTree fromJson(
  1. Map<String, dynamic> json
)

Deserializes the result from JSON.

Implementation

static RenderTree fromJson(Map<String, dynamic> json) {
  return RenderTree(json['tree'] as String);
}