⭐ 给 Platform Channel 用
Map<String, dynamic> toMap() { return {'type': type, 'value': value, 'width': width, 'height': height}; }