factory Button.fromJson(Map<String, dynamic> json) { return Button( text: json['text'] as String, value: json['value'] as String, ); }