decode static method

Implementation

static FlutterSmartSelfieResponse decode(Object result) {
  result as List<Object?>;
  return FlutterSmartSelfieResponse(
    code: result[0]! as String,
    createdAt: result[1]! as String,
    jobId: result[2]! as String,
    jobType: FlutterJobTypeV2.values[result[3]! as int],
    message: result[4]! as String,
    partnerId: result[5]! as String,
    partnerParams: (result[6] as Map<Object?, Object?>?)?.cast<String?, String?>(),
    status: FlutterSmartSelfieStatus.values[result[7]! as int],
    updatedAt: result[8]! as String,
    userId: result[9]! as String,
  );
}