TranslationMatch.fromJson constructor

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

Implementation

factory TranslationMatch.fromJson(Map<String, dynamic> json) {
  return TranslationMatch(
    json['id'],
    json['segment'],
    json['translation'],
    json['source'],
    json['target'],
    json['quality'].toString(),
    json['reference'],
    json['usage-count'],
    json['subject'],
    json['created-by'],
    json['last-updated-by'],
    json['create-date'],
    json['last-update-date'],
    double.parse(json['match'].toString()),
  );
}