DeviceAuth.fromJson constructor

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

device auth from json method

Implementation

factory DeviceAuth.fromJson(Map<String, dynamic> json) => DeviceAuth(
      accountId: json["accountId"] is String ? json["accountId"] ?? "" : "",
      deviceId: json["deviceId"] is String ? json["deviceId"] ?? "" : "",
      secret: json["secret"] is String ? json["secret"] ?? "" : "",
      displayName:
          json["displayName"] is String ? json["displayName"] ?? "" : "",
    );