toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'id': id,
    'type': type,
    'cubit_id': cubitID,
    'state_id': stateID,
    'variable_id': variableID,
    'assign_from_type': EnumToString.convertToString(assingFromType),
    'json_key': jsonKey,
    'assigning_json': assigningJSON.toJson(),
    'target_index': targetIndex,
  };
}