FundamentalMetrics.fromJson constructor

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

Implementation

FundamentalMetrics.fromJson(Map<String, dynamic> json) {
  multiples = json['multiples'] != null
      ? Multiples.fromJson(json['multiples'])
      : null;
  stability = json['stability'] != null
      ? Stability.fromJson(json['stability'])
      : null;
  revenue =
      json['revenue'] != null ? Revenue.fromJson(json['revenue']) : null;
  period = json['period'] != null ? DateTime.parse(json['period']) : null;
}