NearestDc.deserialize constructor
NearestDc.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory NearestDc.deserialize(BinaryReader reader) {
// Read [NearestDc] fields.
final country = reader.readString();
final thisDc = reader.readInt32();
final nearestDc = reader.readInt32();
// Construct [NearestDc] object.
final returnValue = NearestDc(
country: country,
thisDc: thisDc,
nearestDc: nearestDc,
);
// Now return the deserialized [NearestDc].
return returnValue;
}