getMapper method

JSONMapper getMapper(
  1. Type type
)

Implementation

JSONMapper getMapper(Type type) {
  var mapper = mappers[type];
  if ( mapper == null) {
    mappers[type] = mapper = JSONMapper(type: type, validate: validate);
  }

  return mapper;
}