Icon.toMCP constructor
Implementation
factory Icon.toMCP(Map<String, Object?> map) {
return Icon(
src: map['src'] as String,
mimeType: map['mimeType'] as String?,
sizes: (map['sizes'] as List<dynamic>?)?.cast<String>(),
theme: map['theme'] != null ? Theme.to(map['theme'] as String) : null,
);
}