toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final Map<String, Object?> json = {};

  if (fallback != null) {
    json['fallback'] = fallback!.name;
  }

  return json;
}