getJson method

dynamic getJson(
  1. dynamic json
)

Implementation

dynamic getJson(json) {
  if (json == null) return null;
  switch (this) {
    case CallBackParameterName.all:
      return json;
    case CallBackParameterName.token:
      return json['token'];
  }
}