tryFromJson static method

Translation? tryFromJson(
  1. Map<String, dynamic> json
)

Implementation

static Translation? tryFromJson(Map<String, dynamic> json) {
  final t = Translation.fromJson(json);
  return t.languages.isEmpty ? null : t;
}