LetterValue.fromJSON constructor

LetterValue.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

factory LetterValue.fromJSON(Map<String, dynamic> data) {
	return LetterValue(
		letter: (data["letter"] as String?),
		index: (data["index"] as String?),
		coefficient: (data["coefficient"] as num?)?.toDouble(),
		value: (data["value"] as num?)?.toDouble()
	);
}