Converts the RemoteLog instance to a JSON object.
Map<String, dynamic> toJson() => { 'logLevel': logLevel, 'tag': tag, 'message': message, 'throwable': throwable, 'time': time, };