toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  if (hasKey) {
    return {'ConditionParameter': ':$key'};
  } else if (hasIndex) {
    return {'ConditionParameter': '#$index'};
  } else {
    return {'ConditionParameter': '?'};
  }
}