fromJson static method

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

Implementation

static ConversionEvent fromJson(Map<String, dynamic> json) {
  return ConversionEvent(
    id: json['id'],
    nodeID: json['node_id'],
    projectID: json['project_id'],
    trigger: Trigger.fromString(json['trigger']) ?? Trigger.onLoad,
    properties: json['properties'],
    createdAt: DateTime.parse(json['created_at']),
  );
}