WatchOsPairedDeviceInfo.fromJson constructor

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

Implementation

factory WatchOsPairedDeviceInfo.fromJson(Map<String, dynamic> json) =>
    WatchOsPairedDeviceInfo(
      json['isPaired'] as bool? ?? false,
      json['isWatchAppInstalled'] as bool? ?? false,
      json['isComplicationEnabled'] as bool? ?? false,
      urlToUri(json['watchDirectoryURL'] as String?),
    );