map<U> method
Creates a Service that wraps over this one, and maps input and output using two converter functions.
Handy utility for handling data in a type-safe manner.
Implementation
Service<Id, U> map<U>(U Function(Data) encoder, Data Function(U) decoder) {
return _MappedService(this, encoder, decoder);
}