toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() =>
    {
      'identifier': identifier,
      'title': title,
      'foreground': foreground,
      'authenticationRequired': authenticationRequired,
      'moRequired': moRequired,
      'destructive': destructive,
      'icon': icon,
      'textInputActionButtonTitle': textInputActionButtonTitle,
      'textInputPlaceholder': textInputPlaceholder,
    };