Translation.fromJson constructor

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

Implementation

factory Translation.fromJson(Map<String, dynamic> json) => Translation(
      text: json['text'],
      to: json['to'],
    );