ModelHint.fromJson constructor

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

Implementation

factory ModelHint.fromJson(Map<String, dynamic> json) {
  return ModelHint(
    name: json['name'] as String,
    weight:
        json['weight'] != null ? (json['weight'] as num).toDouble() : null,
  );
}