Language.fromJson constructor

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

Implementation

factory Language.fromJson(Map<String, dynamic> json) {
  return Language(
    name: json['name'],
    code: json['code'],
    translations: json['translations'],
    percentage: json['percentage'].toDouble(),
    updated: json['updated'],
  );
}