toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (achievementType != null) 'achievementType': achievementType!,
      if (draft != null) 'draft': draft!,
      if (id != null) 'id': id!,
      if (initialState != null) 'initialState': initialState!,
      if (kind != null) 'kind': kind!,
      if (published != null) 'published': published!,
      if (stepsToUnlock != null) 'stepsToUnlock': stepsToUnlock!,
      if (token != null) 'token': token!,
    };