Converts an object of the class to Json.
Map<String, dynamic> toJson() => {'one_time': oneTime, 'buttons': buttons, 'inline': inline};