ComponentPlatform.fromJson constructor

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

Implementation

factory ComponentPlatform.fromJson(Map<String, dynamic> json) {
  return ComponentPlatform(
    attributes: (json['attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    name: json['name'] as String?,
  );
}