FrameTree.fromJson constructor

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

Implementation

factory FrameTree.fromJson(Map<String, dynamic> json) {
  return FrameTree(
    frame: FrameInfo.fromJson(json['frame'] as Map<String, dynamic>),
    childFrames: json.containsKey('childFrames')
        ? (json['childFrames'] as List)
            .map((e) => FrameTree.fromJson(e as Map<String, dynamic>))
            .toList()
        : null,
  );
}