ScheduleRequest.fromJson constructor

ScheduleRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ScheduleRequest.fromJson(Map<String, Object?> json) =>
    ScheduleRequest(
      executeAfter: json["execute_after"] == null
          ? null
          : decodeDateTime(json["execute_after"]),
      maxAmount: json["max_amount"] == null
          ? null
          : (json["max_amount"] as num).toInt(),
      destinationId: json["destination_id"] as String,
      reference: json["reference"] as String,
    );