toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    if (allowAdd != null) r'allowAdd': allowAdd,
    if (allowDispatch != null) r'allowDispatch': allowDispatch,
    if (backgroundColor != null) r'backgroundColor': backgroundColor,
    if (color != null) r'color': color,
    if (description != null) r'description': description,
    if (end != null) r'end': end,
    if (id != null) r'id': id,
    if (key != null) r'key': key,
    if (name != null) r'name': name,
    if (progression != null) r'progression': progression,
    if (reference != null) r'reference': reference,
    if (type != null) r'type': type,
  };
}