FulfillmentActivity.fromJson constructor

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

Implementation

factory FulfillmentActivity.fromJson(Map<String, dynamic> json) {
  return FulfillmentActivity(
    type: (json['type'] as String).toFulfillmentActivityType(),
    codeHook: json['codeHook'] != null
        ? CodeHook.fromJson(json['codeHook'] as Map<String, dynamic>)
        : null,
  );
}