mapPosition static method

PositionPolicy mapPosition(
  1. String? json
)

Implementation

static PositionPolicy mapPosition(String? json) {
  switch (json) {
    case 'Ask':
      return PositionPolicy.ask;
    case 'Require':
      return PositionPolicy.require;
    default:
      return PositionPolicy.none;
  }
}