fromJson static method

AuthDeviceInfoModel fromJson(
  1. String deviceInfoData
)

Implementation

static AuthDeviceInfoModel fromJson(String deviceInfoData) {
  final data = jsonDecode(deviceInfoData);
  return AuthDeviceInfoModel(
    id: data["id"],
    name: data["name"],
  );
}