SharedDevice.fromJson constructor

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

Implementation

SharedDevice.fromJson(Map<String, dynamic> json)
    : this.id = json['id'].toString(),
      this.vcode = ifNullReturnEmpty(json['vcode']),
      this.sharedItem = DeviceIot.fromJson(json['share_item']),
      this.sharedFrom = UserAccount.fromJson(json['share_from']);