SvgDebugNodeSummary.fromJson constructor

SvgDebugNodeSummary.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SvgDebugNodeSummary.fromJson(Map<String, Object?> json) {
  return SvgDebugNodeSummary(
    nodeId: json['nodeId']! as String,
    tagName: json['tagName']! as String,
    svgId: json['svgId'] as String?,
    classes: (json['classes']! as List<Object?>).cast<String>(),
    childCount: (json['childCount']! as num).toInt(),
    animated: json['animated']! as bool,
  );
}