WearOSMessage.fromJson constructor

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

Implementation

factory WearOSMessage.fromJson(Map<String, dynamic> json) => WearOSMessage(
    data: json["data"] ?? Uint8List(0),
    path: json["path"] as String? ?? "",
    requestId: json["requestId"] as int? ?? 0,
    sourceNodeId: json["sourceNodeId"] as String? ?? "");