deserialize method

  1. @override
GoalStatus deserialize(
  1. ByteDataReader reader
)

Implementation

@override
GoalStatus deserialize(ByteDataReader reader) {
  //deserializes a message object of type GoalStatus
  final data = GoalStatus();
  // Deserialize message field [goal_id]
  data.goal_id = GoalID.$prototype.deserialize(reader);
  // Deserialize message field [status]
  data.status = reader.readUint8();
  // Deserialize message field [text]
  data.text = reader.readString();
  return data;
}