deserialize method

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

Implementation

@override
GoalStatusArray deserialize(ByteDataReader reader) {
  //deserializes a message object of type GoalStatusArray
  final data = GoalStatusArray();
  // Deserialize message field [header]
  data.header = Header.$prototype.deserialize(reader);
  // Deserialize message field [status_list]
  {
    // Deserialize array length for message field [status_list]
    final len = reader.readInt32();
    data.status_list = List.generate(len, (_) => GoalStatus.$prototype.deserialize(reader));
  }
  return data;
}