toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => {
      '_elementId': _elementId,
      'titleVariants': titleVariants,
      'actions': actions.map((e) => e.toJson()).toList(),
      'onPresent': onPresent != null ? true : false,
      'tabTitle': tabTitle,
      'showsTabBadge': showsTabBadge,
      'systemIcon': systemIcon,
      'runtimeType': 'FCPAlertTemplate',
    };