Fundamentals.fromJson constructor

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

Implementation

Fundamentals.fromJson(Map<String, dynamic> json) {
  if (json['metrics'] != null) {
    metrics = <FundamentalMetrics>[];
    json['metrics'].forEach((v) {
      metrics!.add(FundamentalMetrics.fromJson(v));
    });
  }
}