ElementBounds.fromJson constructor

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

Implementation

factory ElementBounds.fromJson(Map<String, dynamic> json) => ElementBounds(
      left: (json['left'] as num).toDouble(),
      top: (json['top'] as num).toDouble(),
      width: (json['width'] as num).toDouble(),
      height: (json['height'] as num).toDouble(),
    );