static Text? fromJson(Map<String, dynamic>? json) { if (json == null) { return null; } return Text( text: (json['text'] as String?) ?? '', ); }