toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = id;
  data['identifier'] = identifier;
  data['title'] = title;
  data['subTitle'] = subTitle;
  data['description'] = description;
  data['targetType'] = targetType;
  data['target'] = target;
  data['expiry'] = expiry;
  data['expiryDays'] = expiryDays;
  data['expiryDate'] = expiryDate;
  data['accumulate'] = accumulate;
  data['isActive'] = isActive;
  data['updatedAt'] = updatedAt;
  data['iconLink'] = iconLink;
  data['levelOrderNumber'] = levelOrderNumber;
  return data;
}