fromJson static method

Text? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static Text? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return Text(text: (json['text'] as String?) ?? '');
}