toMap returns a map of the object.
Map<String, dynamic> toMap() { return { 'telephony': telephony?.toMap(), 'wifi': wifi?.toMap(), }; }