fromJson static method

ExportedCatalog fromJson(
  1. Map<String, Object?> json
)

Implementation

static ExportedCatalog fromJson(Map<String, Object?> json) => ExportedCatalog(
  name: json['name'] as String? ?? '',
  template: json['template'] as String? ?? 'en',
  locales: [
    for (var locale in json['locales'] as List? ?? const [])
      if (locale is String) locale,
  ],
  keys: _int(json['keys']),
);