toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      "id": id,
      if (nativeViewId != null) "nativeViewId": nativeViewId,
      "type": type,
      if (children != null) "children": children?.map((e) => e.toMap()).toList(),
      if (skeletons != null) "skeletons": skeletons?.map((e) => e.toMap()).toList(),
      "top": rect.top,
      "left": rect.left,
      "width": rect.width,
      "height": rect.height,
      if (opacity != 1.0) "opacity": opacity,
      if (isSensitive) "isSensitive": isSensitive,
    };