toJson method

Map<String, dynamic> toJson()

Convert to JSON.

Implementation

Map<String, dynamic> toJson() => {
      'action': action,
      'path': path,
      'description': description,
      if (details != null) 'details': details,
    };