Engine.fromMap constructor

Engine.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory Engine.fromMap(Map<String, dynamic> json) => Engine(
      version: json["version"],
      buildDate: json["build_date"] == null
          ? null
          : DateTime.parse(json["build_date"]),
      graphDate: json["graph_date"] == null
          ? null
          : DateTime.parse(json["graph_date"]),
    );