Object to Map serializer
@override Map<String, dynamic> toJson() { return {'@type': 'networkTypeOther', if (extra != null) '@extra': extra}; }