Adding a BarristerJsonDecoder instead of having it duplicated across classes as a function