toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'ability': ability,
      'result': result,
      'arguments': arguments,
      'time': time.toIso8601String(),
      if (userId != null) 'userId': userId,
    };