Convert to a map for passing to native platforms
Map<String, dynamic> toMap() { return { 'width': width, 'height': height, 'name': name, }; }