DeviceTemplate.fromJson constructor

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

Implementation

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